APIShortlinksGet 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-05-08T23:03:27.694Z",
      "id": "8e5ce954-abe2-4d72-8c4e-4116e214047d",
      "key": "2Dnb5",
      "org_id": "7583d651-5994-413b-ac2a-6ebe3c790978",
      "password_hash": "SNFbPoA4Hgjz",
      "restrict_to_org": true,
      "updated_at": "2025-05-08T23:03:27.694Z",
      "user_id": "e3cf91d8-0093-4b52-ab9b-74b8d59be430",
      "value": "https://DPNTp.m3RlwzaW.com/R/F6"
    }
  ],
  "next_page": "PU14DnqC9E5M0zUP4Itv13Lc"
}