Exchange OAuth code for tokens
Platform OAuth
Exchange OAuth code for tokens
Exchanges the authorization code from the OAuth redirect for platform tokens and stores them on the brand.
POST
Exchange OAuth code for tokens
Authorizations
API key as Authorization: Bearer sk-social-...
Body
application/json
Available options:
x, linkedin, instagram, threads, youtube Example:
"linkedin"
Authorization code from the OAuth redirect callback.
Example:
"AQT..."
Brand to attach the token to.
Example:
"acme-corp"
Must match the redirectUri used in the authorization step.
Example:
"https://app.acme.com/oauth/callback"
State parameter from the authorization URL (for CSRF validation).
Example:
"abc123"