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-12-19T17:47:33.099Z",
      "id": "ecd78129-4196-4541-8204-e2fb4c7e985a",
      "is_valid": false,
      "label": "ES2SJYimLxy7tWC0Urw",
      "token": "yg",
      "updated_at": "2024-12-19T17:47:33.100Z",
      "user_id": "736e0022-3f0a-460e-b576-afd52db98a11"
    }
  ],
  "next_page": "Hb5vCQOLdZvHLWUp1xxjMtwxdj"
}