APIUsersGet the shortlinks for a 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/shortlinks
$ curl "https://api.zoo.dev/user/shortlinks" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "created_at": "2025-05-22T02:04:56.563Z",
      "id": "a188920b-db4f-4fca-ba93-ed9f3ead515e",
      "key": "3UeXluRS",
      "org_id": "386fe64e-ca31-4728-98de-8632557409e9",
      "password_hash": "V1cQw8ExNm78f7B11KNo5E",
      "restrict_to_org": true,
      "updated_at": "2025-05-22T02:04:56.563Z",
      "user_id": "4e30a13c-dbaf-4b90-a3f6-61304ec4a264",
      "value": "https://IoyQJ2qLU.cwnTHJ.com/Cm7aHN/gYWI"
    }
  ],
  "next_page": "n16LzqiQi5uvFXPF6qVWa8FCj3dur7"
}