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-19T17:47:40.132Z",
  "id": "faf41834-9760-4e95-b9e7-d9647d8486e8",
  "is_valid": false,
  "label": "jU57ivXtWXZMhOt8",
  "token": "0KOqYF4Tv",
  "updated_at": "2024-12-19T17:47:40.132Z",
  "user_id": "d60c31e5-8ebe-4012-b877-10eec9016d8a"
}