Obtain an access token
Issues an access token for the client_credentials grant (form-encoded).
/api/oauth/tokenIssues an access token for the client_credentials grant (form-encoded). Without scope the token carries every scope of the credential; with it, exactly the scopes named. The scopes are time:read, time:read.financial and metrics:read; one the credential does not hold is refused (invalid_scope). Send the token as Authorization: Bearer <access_token>; it is valid for expires_in seconds.
Each client IP may request 30 tokens per minute. Beyond that the endpoint answers 429 RATE_LIMITED with Retry-After. A token lasts 60 minutes by default, so reuse it until it expires instead of requesting one per call.
Request Body
application/x-www-form-urlencoded
The token request, form-encoded.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/oauth/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=client_credentials&client_id=string&client_secret=string'{ "access_token": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZDQkMtSFM1MTIi...", "token_type": "Bearer", "expires_in": 3600}
