Zilfu
API ReferenceAPI Tokens

Create an API token

Generates a new personal access token for the authenticated user.

POST
/api-tokens
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://zilfu.app/api/api-tokens" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
null
{
  "message": "string"
}
{
  "message": "string",
  "errors": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  }
}