Social accounts API
Connect, list and update the social accounts a workspace publishes to.
6 endpoints. Every path is relative to the API base URL and needs a bearer token unless it is marked public. See the REST API overview for authentication, errors and pagination.
GET/v1/orgs/{orgId}/marketing/accounts
List the workspace's connected social accounts (platform, handle, connection status). Use an account's id as socialAccountId when drafting a post for a specific account.
Path parameters
orgIdstring (uuid)required
Responses
200
dataarray<object>requiredItem fields
idstring (uuid)requiredorgIdstring (uuid)requiredplatformstringrequiredone of
x,linkedin,tiktok,reddit,facebook,instagram,youtube,bluesky,threadsaccountExternalIdstringrequiredaccountNamestring | nullrequiredaccountHandlestring | nullrequiredstatusstringrequiredone of
connected,disconnected,errorscopesarray<string>requiredtokenExpiresAtstring | nullrequiredlastRefreshedAtstring | nullrequiredcreatedAtstringrequiredupdatedAtstringrequiredprofileImageUrlstring (uri) | nullaccountBiostring | nullprofileUrlstring (uri) | nullxPremiumboolean | nullxSubscriptionstring | nullone of
none,basic,premium,premium_plus
curl -X GET "https://api.adventur.ai/v1/orgs/$ORG_ID/marketing/accounts" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN"PATCH/v1/orgs/{orgId}/marketing/accounts/{accountId}
Set the profile link shown for a connected account.
Path parameters
orgIdstring (uuid)requiredaccountIdstring (uuid)required
Request body application/json
profileUrlstring | nullrequired
Responses
200Set the profile link shown for a connected account.
dataobjectrequiredFields
idstring (uuid)requiredorgIdstring (uuid)requiredplatformstringrequiredone of
x,linkedin,tiktok,reddit,facebook,instagram,youtube,bluesky,threadsaccountExternalIdstringrequiredaccountNamestring | nullrequiredaccountHandlestring | nullrequiredstatusstringrequiredone of
connected,disconnected,errorscopesarray<string>requiredtokenExpiresAtstring | nullrequiredlastRefreshedAtstring | nullrequiredcreatedAtstringrequiredupdatedAtstringrequiredprofileImageUrlstring (uri) | nullaccountBiostring | nullprofileUrlstring (uri) | nullxPremiumboolean | nullxSubscriptionstring | nullone of
none,basic,premium,premium_plus
curl -X PATCH "https://api.adventur.ai/v1/orgs/$ORG_ID/marketing/accounts/$ACCOUNT_ID" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{"profileUrl":"string"}'DELETE/v1/orgs/{orgId}/marketing/accounts/{accountId}
Path parameters
orgIdstring (uuid)requiredaccountIdstring (uuid)required
Responses
200
dataobjectrequiredFields
idstring (uuid)requiredorgIdstring (uuid)requiredplatformstringrequiredone of
x,linkedin,tiktok,reddit,facebook,instagram,youtube,bluesky,threadsaccountExternalIdstringrequiredaccountNamestring | nullrequiredaccountHandlestring | nullrequiredstatusstringrequiredone of
connected,disconnected,errorscopesarray<string>requiredtokenExpiresAtstring | nullrequiredlastRefreshedAtstring | nullrequiredcreatedAtstringrequiredupdatedAtstringrequiredprofileImageUrlstring (uri) | nullaccountBiostring | nullprofileUrlstring (uri) | nullxPremiumboolean | nullxSubscriptionstring | nullone of
none,basic,premium,premium_plus
curl -X DELETE "https://api.adventur.ai/v1/orgs/$ORG_ID/marketing/accounts/$ACCOUNT_ID" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN"GET/v1/orgs/{orgId}/marketing/accounts/{accountId}/tiktok/creator-info
Fetch the connected TikTok creator's current privacy/interaction options for the composer.
Path parameters
orgIdstring (uuid)requiredaccountIdstring (uuid)required
Responses
200Fetch the connected TikTok creator's current privacy/interaction options for the composer.
dataobjectrequiredFields
creatorAvatarUrlstring (uri) | nullrequiredcreatorUsernamestring | nullrequiredcreatorNicknamestring | nullrequiredprivacyLevelOptionsarray<string>requiredcommentDisabledbooleanrequiredduetDisabledbooleanrequiredstitchDisabledbooleanrequiredmaxVideoPostDurationSecnumber | nullrequireddirectPostEnabledbooleanrequired
curl -X GET "https://api.adventur.ai/v1/orgs/$ORG_ID/marketing/accounts/$ACCOUNT_ID/tiktok/creator-info" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN"POST/v1/orgs/{orgId}/marketing/accounts/{platform}/oauth/start
Path parameters
orgIdstring (uuid)requiredplatformstringrequiredone of
x,linkedin,tiktok,reddit,facebook,instagram,youtube,bluesky,threads
Request body application/json
redirectUristring (uri)requiredlinkedinTargetstringone of
profile,pageblueskyHandlestring
Responses
200
dataobjectrequiredFields
authorizationUrlstring (uri)requiredstatestringrequired
curl -X POST "https://api.adventur.ai/v1/orgs/$ORG_ID/marketing/accounts/$PLATFORM/oauth/start" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{"redirectUri":"https://example.com"}'POST/v1/orgs/{orgId}/marketing/accounts/bluesky/connect
Connect a Bluesky account with its handle and an app password.
Path parameters
orgIdstring (uuid)required
Request body application/json
handlestringrequiredappPasswordstringrequired
Responses
200Connect a Bluesky account with its handle and an app password.
dataobjectrequiredFields
idstring (uuid)requiredorgIdstring (uuid)requiredplatformstringrequiredone of
x,linkedin,tiktok,reddit,facebook,instagram,youtube,bluesky,threadsaccountExternalIdstringrequiredaccountNamestring | nullrequiredaccountHandlestring | nullrequiredstatusstringrequiredone of
connected,disconnected,errorscopesarray<string>requiredtokenExpiresAtstring | nullrequiredlastRefreshedAtstring | nullrequiredcreatedAtstringrequiredupdatedAtstringrequiredprofileImageUrlstring (uri) | nullaccountBiostring | nullprofileUrlstring (uri) | nullxPremiumboolean | nullxSubscriptionstring | nullone of
none,basic,premium,premium_plus
curl -X POST "https://api.adventur.ai/v1/orgs/$ORG_ID/marketing/accounts/bluesky/connect" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{"handle":"string","appPassword":"string"}'