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": "2024-10-21T18:00:14.107Z",
      "id": "383a0e04-0476-4218-aff5-a25da1aee012",
      "key": "WpUWbrQ",
      "org_id": "f941613d-2f44-4ec6-bf4c-33be5a9d53aa",
      "password_hash": "abInPawXxkjX7ChrOGX3kgcZv1wB",
      "restrict_to_org": false,
      "updated_at": "2024-10-21T18:00:14.107Z",
      "user_id": "ce6ee944-ca56-465b-b6ee-3ff468620132",
      "value": "https://yvsUuCWCLH.X.com/rLS5DCp4GdC/NNl1JH0"
    }
  ],
  "next_page": "5O"
}