Skip to main content
POST
/
social-accounts
/
connect
Start an OAuth connect flow
curl --request POST \
  --url http://localhost:4100/api/v1/social-accounts/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "ws_01HZX5T2K9Q3RB6N6JZP3RYV0M",
  "platform": "INSTAGRAM"
}
'
{
  "authorizeUrl": "<string>",
  "state": "<string>"
}

Authorizations

Authorization
string
header
required

Your Postbreeze API key

Body

application/json
workspaceId
string
required

Workspace that should own the connected account.

Example:

"ws_01HZX5T2K9Q3RB6N6JZP3RYV0M"

platform
enum<string>
required

Which platform to start the OAuth flow for. Reuse the platform value returned by GET /social-accounts rows.

Available options:
INSTAGRAM,
FACEBOOK_PAGE,
X,
LINKEDIN_PERSON,
LINKEDIN_COMPANY,
TIKTOK_BUSINESS,
TIKTOK_PERSONAL,
YOUTUBE,
PINTEREST,
THREADS,
BLUESKY
Example:

"INSTAGRAM"

Response

Authorization URL minted.

authorizeUrl
string

URL the user must open to grant permissions. Single-use; expires with the OAuth state.

state
string

Opaque random string echoed by the OAuth callback. Surface it in your UI if you need to disambiguate concurrent connect attempts.