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-07T20:45:12.761Z",
      "id": "1d1e4a73-851a-4f82-8403-eb0a9f345e62",
      "key": "qX75cM",
      "org_id": "6722cbe5-d4f4-47df-9fb4-cdc501ba5428",
      "password_hash": "hkz",
      "restrict_to_org": false,
      "updated_at": "2025-01-07T20:45:12.761Z",
      "user_id": "1626d049-671c-4784-aebd-6c188faa85e2",
      "value": "https://BaLxTr.dEI45ERFBsI3.com/rq/WZLBV3Loc"
    }
  ],
  "next_page": "gWOCXyX6"
}