Skip to main content

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:

  1. HTTP Basic Auth: Authorization: Basic base64(client_id:client_secret)
  2. Form-encoded body: client_id and client_secret in application/x-www-form-urlencoded payload
  3. JSON body: client_id and client_secret in application/json payload

Request

Responses

Access token issued successfully