Generate OAuth Token

Exchange client credentials for a JWT. Returns jwt on success. Failed requests return 401 with application/problem+json (RFC 9457) for invalid credentials, disabled clients, or no accessible instances.

Body
required
application/json
  • clientId
    Type: string
    required

    Client ID required to get the JWT token used for authentication

  • clientSecret
    Type: string
    required

    Client Secret required to get the JWT token used for authentication

Responses
  • application/json
  • 400

    Malformed JSON body or missing required fields

  • application/problem+json
  • 403

    Some credential configurations may return 403 with an empty body on failure.

  • 500

    Unexpected error while issuing token

Request Example for post/oauth/token
curl https://reporting.api.later.com/oauth/token \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "clientId": "client_id_123",
  "clientSecret": "client_secret_456"
}'
{
  "jwt": "<JWT>"
}