Skip to main content
POST
Exchange a code or rotate an MCP refresh token

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code
client_id
string
required
Maximum string length: 200
code
string
required
Maximum string length: 200
redirect_uri
string
required
Maximum string length: 2048
code_verifier
string
required
Pattern: ^[A-Za-z0-9._~-]{43,128}$
resource
string
Maximum string length: 2048

Response

MCP access and refresh tokens

access_token
string
required
refresh_token
string
required
token_type
enum<string>
required
Available options:
Bearer
expires_in
number
required
scope
enum<string>
required
Available options:
mcp