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-11-01T17:01:44.733Z",
      "id": "59f96815-d20a-4710-9338-8a719230ddde",
      "key": "9HImONAabrPRDwZD9KselU5NS7ZZe3",
      "org_id": "2f809511-0b4d-40f0-b4de-ffec8ad0341e",
      "password_hash": "YXxCPFeGNFMBauwfpcXl",
      "restrict_to_org": true,
      "updated_at": "2024-11-01T17:01:44.733Z",
      "user_id": "0aaafca1-e6a9-4db5-b14d-cf09b725b953",
      "value": "https://1oP4B.PY.com/8o9Rkd53J/7nSV5ocVOi"
    }
  ],
  "next_page": "oGE"
}