Skip to main content
POST
Exchange OAuth code

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Platform, code, and metadata (redirect_uri + state required)

code
string
required

Code is the authorization code received from the platform callback.

Example:

"AQDtbPB9X..."

metadata
object
required

Metadata must include redirect_uri and state for CSRF validation.

platform
enum<string>
required

Platform identifies the social platform (must match the connect call).

Available options:
app_store_connect,
bluesky,
facebook,
google,
instagram,
instagram_fb,
linkedin,
linkedin_page,
pinterest,
telegram,
threads,
tiktok,
twitter,
whatsapp,
youtube,
zalo
Example:

"instagram"

Response

Google login manages multiple Business Profiles; select one

connection_id
string
required
Example:

"pc_4a8f2c1e9b3d7f06a5c2e8b4d1f3a7e2"

platform
enum<string>
required
Available options:
app_store_connect,
bluesky,
facebook,
google,
instagram,
instagram_fb,
linkedin,
linkedin_page,
pinterest,
telegram,
threads,
tiktok,
twitter,
whatsapp,
youtube,
zalo
Example:

"google"

profiles
object[]
required
status
string
required
Example:

"selection_required"

login_id
string

login_id identifies the login and is set for Facebook, Google and LinkedIn. pages and lost_access are Facebook page-selection only.

lost_access
object[]
pages
object[]