API Token
Token generation and management
Exchange API client credentials for an access token. Use this token in the Authorization header as "Bearer " for authenticated API requests.
Body
clientIdstringRequiredExample:
The API client ID provided when the API client was created
client_abc123xyzclientSecretstringRequiredExample:
The API client secret provided when the API client was created
secret_def456uvworganizationIdstringRequiredExample:
The organization ID associated with this API client
org_789ghiResponses
200
Successfully authenticated and returned access token
application/json
400
Bad request - missing or invalid parameters
401
Invalid credentials or unauthorized
post
/api/tokenPOST /api/token HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"clientId": "client_abc123xyz",
"clientSecret": "secret_def456uvw",
"organizationId": "org_789ghi"
}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}Last updated
Was this helpful?