Skip to main content
POST
/
v1
/
project
/
tokens
Create a token
curl --request POST \
  --url https://api.poix.io/v1/project/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "settings": {
    "rateLimit": {
      "limit": 123,
      "window": 123
    }
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
label
string

The label for the token.

Required string length: 1 - 128
settings
object

The settings for the token.

Response

Successful response

id
string<uuid>
required

The unique ID of the token.

token
string
required

The token value.