Authentication

Generate OAuth Token

Exchange client credentials for a JWT. Returns jwt on success. Failed requests return application/problem+json (RFC 9457) with type, title, and detail (no status in body):

  • 401 (type: ANL_00401) — the clientId or clientSecret was not accepted. Check the credentials before retrying.
  • 403 (type: ANL_00403) — the credentials were accepted, but the client is not permitted to issue a token. Retrying will not help; contact your Later account team.
  • 415 (type: ANL_00415) — the request Content-Type is not application/json.
post/oauth/token

Request

Request body

clientIdstring required

Client ID required to get the JWT token used for authentication

clientSecretstring required

Client Secret required to get the JWT token used for authentication

Example request

{
  "clientId": "client_id_123",
  "clientSecret": "client_secret_456"
}

Response

Success. Returns jwt for use as Authorization: Bearer <jwt> on all reporting routes.

jwtstring required

JWT used as Authorization: Bearer <jwt> on Reporting API routes.

Example response

{
  "jwt": "<JWT>"
}

Changes

No recorded changes to this operation across all 1 revision of this API.