Social connections
Connect your organization's social media accounts, and list the accounts a post can be published to.
x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
outputId*stringStory output identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$Every X connection of the organization, as a publish target for the output, each with whether it can be published to now, and what the output's claim check would do to a publish.
application/json- response
items*array<>claimCheck*What the claim check would do to a publish of this output right now: the reason it would be refused, if any
media*Why the post, its text, images or clip, keeps it from being published right now; null when nothing does
curl -X GET 'https://api.nuvelics.com/api/tenant/v1/social-publish-targets?outputId=string'{ "items": [ { "kind": "x", "id": "string", "displayName": "string", "handle": "string", "availability": "ready", "publishedAt": "2019-08-24T14:15:22Z", "publishId": "string", "claimedAt": "2019-08-24T14:15:22Z" } ], "claimCheck": { "blocked": "open_findings", "openCount": 0, "unchecked": true }, "media": { "reason": "text_dismissed_quote", "card": 0 }}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
Every social connection configured for the organization.
application/json- response
items*array<>curl -X GET 'https://api.nuvelics.com/api/tenant/v1/social-connections'{ "items": [ { "id": "string", "orgId": "string", "platform": "string", "credentialId": "string", "displayName": "string", "handle": "string", "accountDisplayName": "string", "scopes": "string", "connectedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "refreshFailedAt": "2019-08-24T14:15:22Z", "grantedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringSocial connection identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$The social connection
application/json- response
id*stringSocial connection identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgId*stringOwning organization identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$platform*stringOAuth provider registry id this connection was made against (e.g. x)
1 <= lengthcredentialId*stringReference to the stored credential holding this connection's tokens
displayName*stringOrg-admin-editable display name for this connection
1 <= lengthhandle*stringThe connected account's handle, snapshotted at connect/reconnect time
accountDisplayName*stringThe connected account's own display name, snapshotted at connect/reconnect time
scopes*stringSpace-delimited scopes actually granted at consent time
connectedAt*stringISO 8601 timestamp of the first connect (never touched by a reconnect)
date-timeexpiresAt*stringISO 8601 expiry of the current access token -- refreshed on use, so this advances on every successful resolve; a stale value with a set refreshFailedAt means the connection is dead until Reconnect
date-timerefreshFailedAt*stringISO 8601 timestamp of the most recent failed refresh attempt, or null if the last refresh (or the connection's initial token exchange) succeeded
date-timegrantedBy*stringThe member who most recently completed this connection's consent
^[0-7][0-9A-HJKMNP-TV-Z]{25}$createdAt*stringISO 8601 creation timestamp
date-timeupdatedAt*stringISO 8601 last-modified timestamp
date-timecurl -X GET 'https://api.nuvelics.com/api/tenant/v1/social-connections/string'{ "id": "string", "orgId": "string", "platform": "string", "credentialId": "string", "displayName": "string", "handle": "string", "accountDisplayName": "string", "scopes": "string", "connectedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "refreshFailedAt": "2019-08-24T14:15:22Z", "grantedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringSocial connection identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$application/json- body
displayName*string1 <= lengthSocial connection updated
application/json- response
id*stringSocial connection identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$orgId*stringOwning organization identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$platform*stringOAuth provider registry id this connection was made against (e.g. x)
1 <= lengthcredentialId*stringReference to the stored credential holding this connection's tokens
displayName*stringOrg-admin-editable display name for this connection
1 <= lengthhandle*stringThe connected account's handle, snapshotted at connect/reconnect time
accountDisplayName*stringThe connected account's own display name, snapshotted at connect/reconnect time
scopes*stringSpace-delimited scopes actually granted at consent time
connectedAt*stringISO 8601 timestamp of the first connect (never touched by a reconnect)
date-timeexpiresAt*stringISO 8601 expiry of the current access token -- refreshed on use, so this advances on every successful resolve; a stale value with a set refreshFailedAt means the connection is dead until Reconnect
date-timerefreshFailedAt*stringISO 8601 timestamp of the most recent failed refresh attempt, or null if the last refresh (or the connection's initial token exchange) succeeded
date-timegrantedBy*stringThe member who most recently completed this connection's consent
^[0-7][0-9A-HJKMNP-TV-Z]{25}$createdAt*stringISO 8601 creation timestamp
date-timeupdatedAt*stringISO 8601 last-modified timestamp
date-timecurl -X PATCH 'https://api.nuvelics.com/api/tenant/v1/social-connections/string' \ -H 'Content-Type: application/json' \ -d '{ "displayName": "string"}'{ "id": "string", "orgId": "string", "platform": "string", "credentialId": "string", "displayName": "string", "handle": "string", "accountDisplayName": "string", "scopes": "string", "connectedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "refreshFailedAt": "2019-08-24T14:15:22Z", "grantedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringSocial connection identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$Social connection deleted, together with its credential
curl -X DELETE 'https://api.nuvelics.com/api/tenant/v1/social-connections/string'x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
application/json- body
platform*stringOAuth provider registry id to connect (e.g. x)
1 <= lengthThe platform's consent URL for the browser to follow
application/json- response
authorizationUrl*stringThe platform's consent URL for the browser to follow
uricurl -X POST 'https://api.nuvelics.com/api/tenant/v1/social-connections/authorize' \ -H 'Content-Type: application/json' \ -d '{ "platform": "string"}'{ "authorizationUrl": "http://example.com"}x-api-key<token>A service key (nvs_...) in the x-api-key header. A service key belongs to one organization: an X-Org-Id header is optional and, when sent, must name that organization. This header also accepts any credential the bearer scheme does, and when a request sends both headers, this one is used.
id*stringSocial connection identifier
^[0-7][0-9A-HJKMNP-TV-Z]{25}$The platform's consent URL for the browser to follow
application/json- response
authorizationUrl*stringThe platform's consent URL for the browser to follow
uricurl -X POST 'https://api.nuvelics.com/api/tenant/v1/social-connections/string/reconnect'{ "authorizationUrl": "http://example.com"}