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": "2025-01-07T17:15:41.573Z",
      "id": "3a3fee09-8629-49dd-b0c0-6e793ef2105c",
      "is_valid": false,
      "label": "ItcB4O2Lyo",
      "token": "NjMZ0oAgiXnqYPSNgzhD",
      "updated_at": "2025-01-07T17:15:41.573Z",
      "user_id": "fa1e8181-ab13-452e-9c09-a70d2a853955"
    }
  ],
  "next_page": "ClHaOcTL"
}