API → UsersGet 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-01-09T18:27:33.008Z",
      "id": "9a2a76a5-117f-4126-9e6e-a744c2dd7d29",
      "key": "cW4oHOZ3nGvH6XzkJl",
      "org_id": "7f9b7b34-4740-4a90-9fab-c28c2eb83e0d",
      "password_hash": "0IyrlsA55cG",
      "restrict_to_org": true,
      "updated_at": "2025-01-09T18:27:33.008Z",
      "user_id": "d55717c8-0fb0-4d48-8354-9c08a25e7a75",
      "value": "https://wWZCtNzRAruv.OC7K2rBk3.com/3XRvf/kEl0c"
    }
  ],
  "next_page": "k6cgxzgm9Qx"
}