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-01-17T16:14:42.750Z",
      "id": "01b55272-dff3-4667-9a61-787f3c8e2e5a",
      "key": "qpN6Ao4yYmgLjcDL0",
      "org_id": "0d04accb-9ca4-4a38-b360-f5f6ef9512ac",
      "password_hash": "gBCgnvvwEb1Q5uzRQUj",
      "restrict_to_org": false,
      "updated_at": "2025-01-17T16:14:42.751Z",
      "user_id": "b30b6360-699f-446b-a426-048d32f6d96d",
      "value": "https://FkX.ihk4EZZJi9.com/zgq/vY4QBTmwVX"
    }
  ],
  "next_page": "EM8YX1bTia"
}