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-04-17T14:10:27.495Z",
      "id": "540123af-6a83-4c31-8fb1-d2e8486d2b4e",
      "key": "hcyH",
      "org_id": "80e07e88-e9be-445c-9082-2fd57c551f3b",
      "password_hash": "73rFsrk25",
      "restrict_to_org": false,
      "updated_at": "2025-04-17T14:10:27.495Z",
      "user_id": "829b7f8b-0132-4390-b445-205cb0f54eb8",
      "value": "https://Br.3.com/rHG/kZLbxztgc"
    }
  ],
  "next_page": "MRftn"
}