Obtain an access token
POST/oauth/token
This endpoint is used to obtain access token using client credentials grant only, for machine-to-machine (M2M) authentication.
It does not support user-based grants. For user authentication, obtain tokens from one of Onteric's user-based Identity Providers (IDPs). Bearer tokens from these IDPs are also accepted by this API.
A client granted management scopes acts as a management client: it can perform management operations
against its own organisation without an interactive user. Management tokens are shorter-lived than
ordinary access tokens — read expires_in rather than assuming one hour.
This endpoint will accept client credentials using three different formats for convenience:
- HTTP Basic Auth: Authorization: Basic base64(client_id:client_secret)
- Form-encoded body: client_id and client_secret in application/x-www-form-urlencoded payload
- JSON body: client_id and client_secret in application/json payload
Request
Responses
- 200
- 400
- 401
- 500
Access token issued successfully
Unsupported grant_type, missing client credentials, or invalid request format
Client authentication failed — invalid client_id or client_secret
Internal server error during token signing or scope resolution