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-09T18:26:14.563Z",
      "id": "a832b73f-e658-48c6-b120-5b2bf2b5df7e",
      "key": "O54fuUOHx4qhVE",
      "org_id": "0510e7a1-f676-46c0-a94d-1d3f94a04c78",
      "password_hash": "klo8HzXBP9xr6qOM",
      "restrict_to_org": false,
      "updated_at": "2025-01-09T18:26:14.563Z",
      "user_id": "337ac242-17a8-4126-966e-10061899a27c",
      "value": "https://i9ZsW.k.com/yROMo5tbvvl/9j80x5P6Od"
    }
  ],
  "next_page": "PUlsfZ9MbH18NFTlflEF1IdXtRO9"
}