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-17T16:12:01.538Z",
      "id": "af64059c-b8e7-4992-a181-b7f0f19ef748",
      "is_valid": false,
      "label": "6irJ",
      "token": "yQQRYTMPfa8L85mIeJr1V",
      "updated_at": "2025-01-17T16:12:01.539Z",
      "user_id": "4fa2f68a-532e-455b-a09d-d346cb1e094e"
    }
  ],
  "next_page": "wFPB58HQPPUvXRmGTUq"
}