API → ShortlinksGet the shortlinks for an org

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
/org/shortlinks
$ curl "https://api.zoo.dev/org/shortlinks" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "created_at": "2025-04-01T00:20:44.791Z",
      "id": "29fa7778-840d-46ab-843e-cb172a6dd80d",
      "key": "XUe0YHvI",
      "org_id": "f32fbab3-e016-4fab-91ea-55bba78ed975",
      "password_hash": "KT",
      "restrict_to_org": false,
      "updated_at": "2025-04-01T00:20:44.791Z",
      "user_id": "f3291734-8755-4fbc-9a50-1668b1b847c4",
      "value": "https://dp0edY.b48LGFzG.com/HK/N6V"
    }
  ],
  "next_page": "BlxhYu6"
}