Skip to main content
POST
Spend an authorization code for an opaque access token and a refresh token. The access token is

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Spend an authorization code for an opaque access token and a refresh token. The access token is not a session token and reaches no data on its own: only api.exchange_mcp_token, called by the MCP server with the tenant's own key beside it, turns one into a session.

p_client_id
string<text>
required
p_code
string<text>
required
p_code_verifier
string<text>
required
p_redirect_uri
string<text>
required

Response

200

OK