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": "2024-12-06T17:01:38.758Z",
  "id": "022926ac-9edf-429d-bf7a-c5fc7021daf7",
  "is_valid": true,
  "label": "tzRcx3Bgv",
  "token": "cKlioGbSAk3S7StSRwH9kgWM",
  "updated_at": "2024-12-06T17:01:38.758Z",
  "user_id": "8a6b9071-aeb9-4e9b-a700-aa6e9972c4f6"
}