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-02-11T16:13:14.151Z",
      "id": "76adc9e2-bfb1-467a-9449-6c8255b92e9a",
      "key": "PpbqEryRoG",
      "org_id": "4f3fb980-f7e0-4ebe-a8a8-92cb5e90f982",
      "password_hash": "gFb4kWM3QkaMnUs",
      "restrict_to_org": false,
      "updated_at": "2025-02-11T16:13:14.151Z",
      "user_id": "1795818f-fc05-43e8-b614-c6d764a72e48",
      "value": "https://XAp3NzuYnzsm.9z.com/5Goo/lBaYTSTK"
    }
  ],
  "next_page": "WKA31kYCwJHE"
}