API → ShortlinksGet the shortlinks for a user

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
/user/shortlinks
$ curl "https://api.zoo.dev/user/shortlinks" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "created_at": "2025-03-12T01:37:32.763Z",
      "id": "3a55c31d-0e69-4d44-987d-43f0e5c0c83a",
      "key": "onCeIKc",
      "org_id": "3c259e33-beb4-44a2-90af-384ee5f4b905",
      "password_hash": "DLGRS09uq",
      "restrict_to_org": false,
      "updated_at": "2025-03-12T01:37:32.763Z",
      "user_id": "05741594-d653-4f4e-b69a-699187a4b0bf",
      "value": "https://YxuhwmnZBD.fM.com/aFVKfvpZw/kz6NRvO"
    }
  ],
  "next_page": "gw2Q2"
}