Skip to content

API Endpoints (no auth required)

The following endpoints are available for the API, meaning they can be accessed without logging in using
the ?token=<token> parameter. Useful for cron jobs and such.

Endpoints

GET: /items

Get all items in the database as JSON.

GET: /items/available

Get all available items as JSON.

GET: /items/unavailable

Get all unavailable items as JSON.

GET: /items/overdue

Get all overdue items as JSON.

GET: /items/user/<userid>

Get all items borrowed by a user as JSON.

GET: /user/<userid>

Get user info as JSON (userid is from /items, borrowed_to).

POST: /send_report (params: interval=<days>

Send out an report to all configured teams webhooks, see cron_examples.txt for an example use case.