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-04-17T14:08:12.875Z",
  "id": "e4830807-f61c-47ec-9293-f709a13ccbe5",
  "is_valid": false,
  "label": "zDgYyojWzVq",
  "token": "h5",
  "updated_at": "2025-04-17T14:08:12.875Z",
  "user_id": "9fbae5b9-e1ec-4541-b29f-4abeb4b0ea61"
}