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-21T20:02:56.766Z",
      "id": "2b96b195-765d-4b5b-b31b-88b2cec96094",
      "key": "j2Gg2XYaqI5RDVO",
      "org_id": "b20c4830-b9c1-4207-af12-201b5c1955af",
      "password_hash": "IDKJ8PR",
      "restrict_to_org": true,
      "updated_at": "2025-04-21T20:02:56.766Z",
      "user_id": "b437b57a-be52-4cc9-9747-89c93874b201",
      "value": "https://zVV.ksksMR5.com//C"
    }
  ],
  "next_page": "5mgIhCXiSiuYDK"
}