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-04-11T21:10:22.389Z",
  "id": "e13414bf-f042-4ed2-a32e-d72b966656af",
  "is_valid": false,
  "label": "5meUnY3nP",
  "token": "4db535ce-2133-4638-8762-4600be941685",
  "updated_at": "2024-04-11T21:10:22.389Z",
  "user_id": "2581610e-5689-447c-b496-e70d2f9026e9"
}