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-17T16:14:05.631Z",
      "id": "22d9b3dc-36e8-445c-9adb-d7e99fda6a2a",
      "key": "cAoMRbw",
      "org_id": "fb553b4c-8e1d-4e83-9f64-491d0c5ab1e5",
      "password_hash": "B8bEt9rttFZGPBPy5KwDxq86",
      "restrict_to_org": true,
      "updated_at": "2025-01-17T16:14:05.631Z",
      "user_id": "d5bc169d-3c5b-4644-a753-962ddbdf1c6d",
      "value": "https://xYdUgwEr4I.t.com/fYuyD/bJ7XzywCIAg"
    }
  ],
  "next_page": "LSZzXQwFrZBKMH3Qqi1dQtab2dgyZ"
}