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-03-12T01:37:33.499Z",
      "id": "7a02f5d8-221f-45a8-b5a7-a834a93a1496",
      "key": "N",
      "org_id": "f7ea0671-edf5-4b8b-a6d4-b9f6c05cdc27",
      "password_hash": "8hGyeVWMTECuFg5rC860C9yOloE3ro",
      "restrict_to_org": false,
      "updated_at": "2025-03-12T01:37:33.499Z",
      "user_id": "4bd93f24-d984-46ef-8284-e7e18a2a4dcc",
      "value": "https://D..com/wa5avzqWPi/zE6HVSm"
    }
  ],
  "next_page": "u08ZcH6nfOXtVKPmEcW"
}