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-02-27T21:31:56.762Z",
      "id": "88a93530-d382-492c-867c-77c1e34f4f2b",
      "key": "GMrCT9Un0oKTi1lY0ikIIn8yJ2r",
      "org_id": "391ce8fb-1d0c-43b0-b5f1-3f1fa5e96ce8",
      "password_hash": "RWp2JhTIKmYo4BczgFgnLrZF6yZeh",
      "restrict_to_org": true,
      "updated_at": "2025-02-27T21:31:56.762Z",
      "user_id": "be216868-2e97-4062-91d8-3f6a6f9d5a56",
      "value": "https://f.EAEkt5.com/2mV5bPKO/F8"
    }
  ],
  "next_page": "70XvSLeHtrL9P"
}