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-25T16:40:10.075Z",
      "id": "bd35f80c-d943-4e8d-ab05-40230668096e",
      "key": "",
      "org_id": "40104a6c-a4f8-475b-a156-8f0bed105bfa",
      "password_hash": "UBp8Et7w2vFOxmXnrp94krbDY3foW",
      "restrict_to_org": false,
      "updated_at": "2025-04-25T16:40:10.075Z",
      "user_id": "3219e35c-dc3f-40a2-a6b0-14bfa55a03a8",
      "value": "https://gSw.zGJlMSl.com/Cf0WDeDz3tj6/xkPnUnq1Qp"
    }
  ],
  "next_page": "zY5nXm20jIU8snJxlhwG"
}