POST
/
frontend
/
api
/
v1
/
auth
/
api-token
Create API Token
curl --request POST \
  --url https://{host}/frontend/api/v1/auth/api-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "permissions": [
    "read:billing"
  ],
  "ttl": 0
}'
{
  "created": "2023-11-07T05:31:56Z",
  "expired": null,
  "expires-at": null,
  "permissions": {},
  "token": "<string>",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key Security (Header).

Body

permissions
enum<string>[]

Permissions list

ttl
integer
default:0

Token expiration time. 0 - no expire

Required range: x >= 0

Response

OK

created
string<date-time>
expired
boolean | null
expires-at
string<date-time> | null
permissions
object | null
token
string
updated
string<date-time>