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-17T16:13:20.434Z",
      "id": "33e5c618-6d95-4cb5-b8bb-8a262557bcae",
      "key": "WrtyLI3fVNtW56",
      "org_id": "b7142a66-7494-4b05-ae6c-e11ec70073aa",
      "password_hash": "DBHZi3Gy1RPDgj",
      "restrict_to_org": false,
      "updated_at": "2025-01-17T16:13:20.434Z",
      "user_id": "07f4b459-2331-49e0-85ea-ca0fbcab51c9",
      "value": "https://.jyiv.com/KkSvPcELkBD/6nF"
    }
  ],
  "next_page": "wg5ccNp4MweV"
}