API → UsersGet 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-04-01T00:21:21.894Z",
      "id": "1fc12c7f-05d6-404f-939a-de13bb4fd77d",
      "key": "zcSb36IszdzyzohPdHZJ0",
      "org_id": "917f4abe-653b-48f8-85de-0042dfc4e878",
      "password_hash": "8NV1snCT87pHURkrnoYqOt",
      "restrict_to_org": true,
      "updated_at": "2025-04-01T00:21:21.894Z",
      "user_id": "178aa623-a355-41c5-a4e6-ed77e3b8d901",
      "value": "https://PO.A.com/fRkl3k/52BK"
    }
  ],
  "next_page": "lOuuwYjdzXmIE"
}