API → API TokensList API tokens for your user

Parameters

Name

Type

Req.

  • limit

    integer
    optional
  • page_token

    string
    optional
  • sort_by

    string
    required
    Possible values
    • created_at_ascending:  Sort in increasing order of "created_at".
    • created_at_descending:  Sort in decreasing order of "created_at".

Returns

get
/user/api-tokens
$ curl "https://api.zoo.dev/user/api-tokens" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "created_at": "2024-04-12T19:23:02.686Z",
      "id": "de1f5c35-ff26-4a2d-8ac2-d03fc1977495",
      "is_valid": true,
      "label": "I",
      "token": "4f84fb46-645b-4535-8e05-f506411034f5",
      "updated_at": "2024-04-12T19:23:02.686Z",
      "user_id": "8e69a7d9-22b2-476a-93bf-e780eefece3b"
    }
  ],
  "next_page": "z2wMDssbeQ"
}