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-01-09T18:26:58.396Z",
      "id": "e752e4b9-2a49-4259-b7d3-1231190171a1",
      "key": "KY8Rc4kUdTQgo0O2R44fm",
      "org_id": "9e252a97-e495-41f3-8b34-fd8f38edfd97",
      "password_hash": "HGBw9EelPgjH47p",
      "restrict_to_org": false,
      "updated_at": "2025-01-09T18:26:58.396Z",
      "user_id": "f7d7b58c-fd71-4162-b9b0-f4801227ca31",
      "value": "https://HoXNQmQPI4w.Ja.com/dANxCPIR/NNxHG"
    }
  ],
  "next_page": "sbRnsxZzWKaNVE5OK"
}