Skip to main content
POST
/
v1
/
apps
/
{app_id}
/
m2m
/
token
Create M2M access token
curl --request POST \
  --url https://{defaultHost}/v1/apps/{app_id}/m2m/token \
  --header 'Authorization: Bearer <token>'
{
  "access": "<string>",
  "access_expires_at": "2023-11-07T05:31:56Z",
  "csrf": "<string>",
  "key_id": "<string>",
  "client_name": "<string>",
  "refresh": "<string>",
  "refresh_expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Secret token

Path Parameters

app_id
string
required

App ID

Response

successful

access
string
required

JWT access token

access_expires_at
string<date-time>
required

Timestamp when the access token expires

csrf
string
required

CSRF token required for stateful clients using cookies

key_id
string
required

Identifier of the signing key used to mint the JWT

client_name
string
required

Echo of the client name that owns the token

refresh
string | null

Refresh token, present when the app allows refresh payloads

refresh_expires_at
string<date-time> | null

Timestamp when the refresh token expires