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-04-25T16:39:28.734Z",
      "id": "d16bfabe-349e-4401-83d8-ccee109d7639",
      "key": "8NJFBfj8FPxsMzPbGdk1LZRX",
      "org_id": "0f0bcf7a-5b67-41b0-8c6d-1d851e03f775",
      "password_hash": "hq30xiv246ga5vLsEYmZ",
      "restrict_to_org": true,
      "updated_at": "2025-04-25T16:39:28.734Z",
      "user_id": "18d31732-9840-4657-941c-02cf845348d8",
      "value": "https://jHhjWs.xGXa.com/tYSMDa/E"
    }
  ],
  "next_page": "8YWIxwAndEDlfQ2"
}