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-03-12T01:36:44.993Z",
      "id": "3a2472b6-e60b-4ae7-a125-5b521ed923eb",
      "key": "d9TX",
      "org_id": "261e736c-2afd-41cc-af8a-9b423e3daa44",
      "password_hash": "TPs4JhOAifssHMbSnSI2aJnU",
      "restrict_to_org": true,
      "updated_at": "2025-03-12T01:36:44.993Z",
      "user_id": "3308a495-5fb4-42e9-8da8-2619500ac7c7",
      "value": "https://If3ffb94N99.Kn4YtiRdPa.com/8TFt/AVdvG"
    }
  ],
  "next_page": "TujsNq4cAoCAK4kbMh9LY1oI"
}