Skip to main content
POST
Exchange a Meta OAuth code for a connection

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Body

application/json
code
string
required

The one-time authorization code Meta appended to your redirect URI.

redirect_uri
string<uri>
required

The exact HTTPS redirect URI registered with the Meta app and used to obtain the code.

Response

200 - application/json

The connected ad_account_id, a connected flag, and the list of accounts discovered on the authorizing Meta profile, inside the standard { data, meta } envelope.

The response is of type object.