Developer Docs Logo
API RequestsOAuth API SchemaOauth

Exchange authorization code for access token

POST/oauth2/token/exchange

Exchange authorization code to access token

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/oauth2/token/exchange" \  -H "Content-Type: application/json" \  -d '{    "client_id": "string",    "client_secret": "string",    "code": "string",    "redirect_uri": "string"  }'
{  "active": true,  "access_token": "string",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "workspace_name": "string"}