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-11-01T17:02:16.207Z",
      "id": "0e11ea84-1660-4873-a91f-203517a2626c",
      "key": "Z8n91Lwhv2hiQKpM7OaBGvi",
      "org_id": "f7f3ef4a-3bed-40c7-9a2c-f0004a29eb21",
      "password_hash": "KQ9lGA0igXi5jy",
      "restrict_to_org": true,
      "updated_at": "2024-11-01T17:02:16.207Z",
      "user_id": "7fdcbc75-e7fb-4d53-bb8c-0ee4bc78afc9",
      "value": "https://PtaGozfFAF7S.OmR3kP.com/Mk/"
    }
  ],
  "next_page": "i8M228tkXhRSlRg9Aea"
}