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-12-19T17:50:30.652Z",
      "id": "749fa089-e8ab-4423-a4ed-e74be744b6df",
      "key": "a6qlMlK",
      "org_id": "3c8862bb-a520-4210-9252-5ac3dd1001f6",
      "password_hash": "VFbwdgcnFY89aArSOTlgQSJ",
      "restrict_to_org": false,
      "updated_at": "2024-12-19T17:50:30.652Z",
      "user_id": "2be6f70b-ef4f-4be3-b690-9f3511de3b30",
      "value": "https://qOioxbT8.Bnq.com/t6QRH2Ync/fqSzkTR9g"
    }
  ],
  "next_page": "Fu6m8tNdfWbiYd5FRAEO6Wn"
}