Skip to main content
POST
Exchange or refresh OAuth tokens
Trade an authorization code or refresh token for a Bearer access token. Accepts JSON or form-encoded bodies. Access tokens last about 15 minutes. Include code_verifier for authorization-code exchanges.

Authorizations

client_secret
string
query
required

Form-style client secret authentication for confidential clients where HTTP Basic is unavailable.

Body

grant_type
enum<string>
required
Available options:
authorization_code
code
string
required
redirect_uri
string<uri>
required
client_id
string
required
client_secret
string
required
code_verifier
string
required
Minimum string length: 43

Response

Token response.

access_token
string
required
token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required
Example:

900

scope
string
required
refresh_token
string

Rotating refresh token when offline_access is granted.