Skip to main content
POST
Create an API token

Authorizations

Authorization
string
header
required

Dashboard JWT only; API tokens are rejected

Headers

X-Request-ID
string

Correlation id, echoed in the response header and in requestId; generated when absent or unsafe.

Pattern: ^[\w.-]{1,128}$

Body

application/json
name
string
required
expiresInDays
integer
required

Response

Token created; plainToken is returned once

Additive envelope fields present on every migrated v1 success body. All fields the route returned before are still returned unchanged.

success
boolean
required

true on success. The webhook test delivery returns 200 with success: false when the receiver failed.

data
object
required
requestId
string

Same value as the X-Request-ID response header. Added to every JSON object success body.

timestamp
string<date-time>

Server time when the response was produced.

meta
object

Additive mirror of the legacy pagination object. Only the keys that the legacy object has are present. Responses without pagination have no meta.