POST
/
tokens
curl --request POST \
  --url https://kq5jp7qj7wdqklhsxmovkzn4l40obksv.lambda-url.eu-central-1.on.aws/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expires_in_days": 1,
  "metadata": "<any>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "token_type": "<string>",
  "user_id": "<string>"
}'
{
  "created": true,
  "expires_at": "<string>",
  "id": "<string>",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request payload for creating a new API token

Specify the token configuration including permissions, expiration, and optional metadata.

Response

201
application/json

Token successfully created - SAVE THE TOKEN VALUE!

Response after creating a new API token

Contains the newly created token value. This is the ONLY time the token value is shown - store it securely!