Skip to main content
POST
/
api-tokens
Create Token
curl --request POST \
  --url https://api.example.com/api-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "prefix": "<string>",
  "created_at": "<string>",
  "token": "<string>",
  "last_used_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Response

Successful Response

Returned only on creation — includes the raw token, shown once.

id
string
required
name
string
required
prefix
string
required
created_at
string
required
token
string
required
last_used_at
string | null