Get an access token
/oauth/tokenExchanges clientId and clientSecret for an access token (OAuth 2.0 client credentials). The token is valid for 1 hour; send it as Authorization: Bearer on every other route. Accepts JSON, a form body (client_id, client_secret, grant_type) or Authorization: Basic base64(clientId:clientSecret).
Request body
| Field | Type | Description |
|---|---|---|
clientIdrequired | string | The first 14 characters of your API key (e.g. sk_live_AbCdEf) or the key id. |
clientSecretrequired | string | The full API key (sk_live_…). |
grantTyperequired | string | Always client_credentials. |
scope | string | Ignored: the token carries all of the key's permissions. |
- expiresAt is the expiry instant in Unix seconds.
- The token stops working the moment its key is revoked.

