API → ShortlinksGet the shortlinks for an org

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
/org/shortlinks
$ curl "https://api.zoo.dev/org/shortlinks" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "created_at": "2024-10-18T02:49:12.709Z",
      "id": "9e1d84b9-ce42-4e6e-b7a8-745a2ca2d6d2",
      "key": "npGqeGreMa8zx6mqA",
      "org_id": "d83ead32-8d56-42fa-bc31-eb82bbee02bf",
      "password_hash": "60cCzewQmOb2HaPXUWPa19",
      "restrict_to_org": true,
      "updated_at": "2024-10-18T02:49:12.709Z",
      "user_id": "277a59c6-d3ec-4903-b298-aa714b6a78b3",
      "value": "https://zPkQM0Zw5BSc.bQr3N.com//9"
    }
  ],
  "next_page": "Nv3"
}