platforms

Handle Oauth Callback

Handle the OAuth callback from the platform.

Exchanges the authorization code for access + refresh tokens, fetches the user's profile, and saves credentials to the brand.

post/v1/platforms/callback

Request

  • Base URL: https://api.theagentc.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.theagentc.io/v1/platforms/callback
  • Auth: HTTP bearer

Request body

codestring required

Authorization code from the platform

statestring required

CSRF state to verify

brand_idstring uuid required

Brand being connected

platformstring required

Platform being connected

redirect_uristring required

Same redirect_uri used in connect

Response

Successful Response

successboolean required
platformstring required
account_usernamestring nullable
messagestring required

Changes

No recorded changes to this operation across all 1 revision of this API.