API → ShortlinksGet 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-07T17:17:51.864Z",
      "id": "d7bb10d5-b8d7-4b5b-b3f1-51fbfffc1eba",
      "key": "JlFcV2B3pKkmU36kaaU8hC",
      "org_id": "ef422f64-edd4-41b4-a2e6-710591ab400d",
      "password_hash": "lLcOTFvHO70mwtyczL",
      "restrict_to_org": false,
      "updated_at": "2025-01-07T17:17:51.864Z",
      "user_id": "f1590dc6-2350-4c06-8e71-7dac9ebd511c",
      "value": "https://36j.hVqPd2JAAP.com/AYp/GL4PA6XW"
    }
  ],
  "next_page": "VBOut7UbYMCaMCXTr"
}