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-09T18:24:43.237Z",
      "id": "42d6035f-f122-42c3-ac6a-ffc79b710eff",
      "is_valid": false,
      "label": "2SuIzHw",
      "token": "2jPv3M2HihQWdVJ",
      "updated_at": "2025-01-09T18:24:43.237Z",
      "user_id": "787cb0b9-b31f-4ad1-b3f7-f513efba1ce2"
    }
  ],
  "next_page": "HGM3QuOjinSuhW2"
}