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

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null

Body

application/json
name
string
required

Response

Successful Response

token
string
required
created_at
integer
required

creation unix timestamp

name
string
required
token_id
string | null