API → OrgsGet 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-01-07T20:43:59.195Z",
      "id": "3695a034-2306-403b-ae50-1711494620db",
      "key": "7zuMohSlA9VYXdc",
      "org_id": "01f36176-f60c-4a36-8ef9-3f454ee282ba",
      "password_hash": "1TJTBMk0QPv",
      "restrict_to_org": false,
      "updated_at": "2025-01-07T20:43:59.195Z",
      "user_id": "5e99196a-9b8f-4e6a-ae70-8052d54677a3",
      "value": "https://4C.iMHR.com/UqioXD4q/k4qjxHd"
    }
  ],
  "next_page": "XDFgH9ug"
}