Skip to main content
POST
Exchange OAuth code

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Body

application/json

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

code
string

Code is the authorization code received from the platform callback.

Example:

"AQDtbPB9X..."

metadata
object

Metadata must include redirect_uri and state for CSRF validation.

platform
string

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

Example:

"instagram"

Response

Google login manages multiple Business Profiles; select one

connection_id
string
Example:

"pc_4a8f2c1e9b3d7f06a5c2e8b4d1f3a7e2"

login_id
string

Facebook page-selection fields (empty for Google Profile selection).

lost_access
object[]
pages
object[]
platform
string
Example:

"google"

profiles
object[]
status
string
Example:

"selection_required"