Tools API
OAuth Token Exchange
Exchange an authorization code for an OAuth access token
POST
Exchanges an OAuth authorization code for an access token. This endpoint does not require JWT authentication since it is used during the OAuth callback flow.
Supported Providers
string
required
OAuth provider:
github | google_drive | gmail | slack | notionstring
required
OAuth authorization code
string
required
OAuth callback URL (must match the one used in the authorization request)
string
Access token
string
Refresh token (provided by some providers)
number
Expiration timestamp (Unix timestamp, provided by some providers)
string
Token type, typically
Bearer