Skip to main content
Version: v3

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

  1. Start OAuth → User authenticates, returns accountId
  2. Get Accounts (this endpoint) → Lists available pages/channels to connect
  3. Attach Account → Connect the selected account

What This Returns

The response varies by platform:

PlatformReturns
facebookList of Facebook Pages the user manages
instagramList of Instagram Professional Accounts (linked to Facebook Pages)
googleGoogle Business Profile locations
linkedinLinkedIn Pages and Profile
tiktokTikTok Creator account info
tiktok-businessTikTok Business Center accounts
youtubeYouTube Channels
pinterestPinterest Business accounts and boards
threadsThreads 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

Authorization stringrequired

Access Token

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Account Location Id

platform stringrequired

Social media platform

Available optionsgooglefacebookinstagramlinkedintiktoktiktok-businessyoutubepinterestthreadsbluesky
accountId stringrequired

The OAuth Account ID received from Step 1 (Start OAuth) via the window message event

search string

Search term to filter accounts/pages by name. Useful when the user has many pages to choose from.

application/json

Returns available accounts/pages/channels that can be connected. Response structure varies by platform - see examples below.

Schema
    oneOf
    successbooleanrequired

    Success or Failure

    statusCodenumberrequired

    Status Code

    messagestringrequired

    Message

    resultsobject

    Requested Results