platforms

Connect Platform

Initiate OAuth flow for connecting a social platform.

Returns an authorization_url that the frontend should redirect the user to. After the user authorizes, the platform redirects back to the specified redirect_uri with a code and state.

post/v1/platforms/connect

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/connect
  • Auth: HTTP bearer

Request body

brand_idstring uuid required

Brand to connect the platform to

platformstring required

Platform to connect: x, youtube, pinterest

redirect_uristring required

Frontend URL to redirect after OAuth completes

Response

Successful Response

authorization_urlstring required
statestring required

Changes

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