Skip to main content
POST
Exchange the code for credentials

Authorizations

Authorization
string
header
required

A platform access token. Get one on the Create an access token endpoint by exchanging your client_id + client_secret, then send it as Authorization: Bearer <token>. Tokens live one hour.

Path Parameters

session_id
string
required

Body

application/json
code
string
required

The code query parameter from the redirect to your return_url.

Response

The connected organization's credentials. The secret is shown only here — store it now.

object
string
Example:

"platform_connect_credentials"

organization
object
client_id
string
client_secret
string

Store securely server-side. Shown only in this response.

mode
enum<string>
deprecated
Available options:
sandbox,
production
test_mode
boolean