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-01T00:20:03.296Z",
      "id": "6d513438-aabd-4004-9035-9d8720fe3cf4",
      "key": "JuH6H",
      "org_id": "a3d452b3-c34a-4489-a9eb-86dac69847bc",
      "password_hash": "XCl9",
      "restrict_to_org": true,
      "updated_at": "2025-04-01T00:20:03.296Z",
      "user_id": "93f31a52-b7c6-466d-a482-2a14a1e7a6fd",
      "value": "https://9S.fuo.com/fiM9dieg/oc"
    }
  ],
  "next_page": ""
}