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-09T18:26:56.025Z",
      "id": "a67d1741-8004-4385-aeb5-51d4ae54476b",
      "key": "EnHmobyuOsPkIx3SFbyaaPT1",
      "org_id": "7ae9c206-e75c-491d-9b15-c883e2ab248a",
      "password_hash": "NxV",
      "restrict_to_org": false,
      "updated_at": "2025-01-09T18:26:56.025Z",
      "user_id": "a0636f0d-5e64-4d35-a386-059c287a8dcd",
      "value": "https://q4v1mGW.zm2Vp0805n.com/6abAUa5ZPeG4/JaPNXq"
    }
  ],
  "next_page": "uFj0F6PjyS8Lq"
}