Get Available Accounts (Step 2 of 3)
GET/social-media-posting/oauth/:locationId/:platform/accounts/:accountId
OAuth Connection Flow - Step 2: Get Available Accounts
After completing OAuth authentication (Step 1), use this endpoint to retrieve the list of available pages, channels, or locations that can be connected.
OAuth Flow Position
- Start OAuth → User authenticates, returns
accountId - Get Accounts (this endpoint) → Lists available pages/channels to connect
- Attach Account → Connect the selected account
What This Returns
The response varies by platform:
| Platform | Returns |
|---|---|
| List of Facebook Pages the user manages | |
| List of Instagram Professional Accounts (linked to Facebook Pages) | |
| Google Business Profile locations | |
| LinkedIn Pages and Profile | |
| tiktok | TikTok Creator account info |
| tiktok-business | TikTok Business Center accounts |
| youtube | YouTube Channels |
| Pinterest Business accounts and boards | |
| threads | Threads profiles |
Next Step
From the response, select the account/page you want to connect and use its details in Step 3:
POST /social-media-posting/oauth/{locationId}/{platform}/accounts/{accountId}
Request
Responses
- 200
- 400
- 401
- 422
Returns available accounts/pages/channels that can be connected. Response structure varies by platform - see examples below.
Bad Request
Unauthorized
Unprocessable Entity