| GET |
/api/status |
Check USB OTG connection, model name, toner/drum/paper health, and server status |
| GET |
/api/scan/capabilities |
Query scanner availability, busy state, flatbed/ADF support, and model |
| POST |
/api/scan/start |
Start (or queue) a scan job; returns HTTP 202 with a jobId |
| GET |
/api/scan/jobs/<jobId>/progress?deviceId=<id> |
Poll job status (QUEUED → RUNNING → READY / FAILED / CANCELED) and page metadata |
| GET |
/api/scan/jobs/<jobId>/page/<index>?deviceId=<id> |
Download scanned page (image/jpeg) with X-Scan-Sha256 & X-Scan-Size-Bytes |
| POST |
/api/scan/jobs/<jobId>/ack |
Acknowledge verified receipt (sha256 + receivedBytes) to clear the host vault copy |
| GET |
/api/scan/pending?deviceId=<id> |
Recover any completed but unacknowledged scans after a network disconnect |
| POST |
/api/scan/jobs/<jobId>/cancel |
Cancel an active or queued scan job immediately |