API → ShortlinksGet 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-04-25T16:40:06.924Z",
      "id": "f132af1d-a9fe-47c5-a464-c6fe47b238a9",
      "key": "qtxHNN45VRetpHH9VLto125",
      "org_id": "0a23c85a-5b31-4bfd-9395-2df9d030e2ef",
      "password_hash": "rGg3xd1YtbcVSt1S",
      "restrict_to_org": false,
      "updated_at": "2025-04-25T16:40:06.924Z",
      "user_id": "7f50db84-92f1-492f-ada5-732c314947e6",
      "value": "https://rCe1RELMF.7a6BumF.com/HKy/TdDUau2"
    }
  ],
  "next_page": "DFlJ"
}