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": "2024-12-19T17:49:56.443Z",
      "id": "16f42ec5-23e7-4986-b0b0-9849f6c85fe3",
      "key": "plHZ6spGt3tiUdwBZSVTJ",
      "org_id": "b71efba1-fee9-4508-9937-ca215b7604f8",
      "password_hash": "0SeaCLDuMIGkXWaFSGSzmecSm",
      "restrict_to_org": false,
      "updated_at": "2024-12-19T17:49:56.443Z",
      "user_id": "cc391696-a872-488f-89a2-ee466d9c73f7",
      "value": "https://Wd74AL.uqGuCt.com//IX"
    }
  ],
  "next_page": "8KS44BWPNDZNBZVahsLfa9HpY4"
}