Skip to content

ScanHistory

User Guide

For a user-facing walkthrough, see QR Scanning.

Per-user QR code scan history.


GET /api/scan-history

Returns the authenticated user's recent QR scan history, ordered by most recent first.

Query parameters

ParameterTypeDefaultDescription
limitinteger (1–100)20Maximum number of entries to return

Response (200)

json
{
  "results": [
    {
      "id": "uuid",
      "bin_id": "uuid",
      "scanned_at": "2024-01-15T10:30:00Z"
    }
  ],
  "count": 8
}

POST /api/scan-history

Records a bin scan. If the bin was previously scanned, updates the timestamp rather than creating a duplicate entry. Automatically trims history to a maximum of 100 entries.

Request body

FieldTypeRequiredDescription
binIdUUIDYesThe bin that was scanned

Response (201): { "ok": true }


DELETE /api/scan-history

Clears all scan history entries for the authenticated user.

Response (204): No content.

Released under the GPL-3.0 License.