API → API TokensCreate a new API token for your user

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
post
/user/api-tokens
$ curl -X POST "https://api.zoo.dev/user/api-tokens" \
	--header "Authorization: Bearer $TOKEN"
201 Created
Response
{
  "created_at": "2025-01-17T16:12:03.049Z",
  "id": "f57c7b83-e59e-4c62-9448-f1d3b1ab5904",
  "is_valid": false,
  "label": "3KfqU7Hz",
  "token": "fKlau7vLRcSG3Hp4tpDg",
  "updated_at": "2025-01-17T16:12:03.049Z",
  "user_id": "96490c5a-d899-46ac-a205-b37073cea687"
}