API reference
Scanning
Start, watch and cancel a scan.
Paths are relative to /api/v1 on your server.
/libraries/{id}/scan#Start a scan
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json·object
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) |
- 202Success.
application/json·object - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.application/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:manage, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see.application/json·ErrorEnvelope - 409
SCAN_ALREADY_RUNNING: one is already running for this libraryapplication/json·ErrorEnvelope - 423
STORAGE_UNAVAILABLE: the library’s storage cannot be reachedapplication/json·ErrorEnvelope
/libraries/{id}/scan#Cancel the running scan
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) |
- 204Done; no body.
- 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:manage, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see.application/json·ErrorEnvelope
/libraries/{id}/scan-status#Read scan status and the last report
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) |
- 200Success.
application/json·ScanStatus - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:manage, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope - 404
NOT_FOUND: no such thing, or not one the caller may see.application/json·ErrorEnvelope
/libraries/scan#Scan every library
A scan, in one mode (quick unless said), of every enabled library the caller’s list shows — a private library is left out while it is locked. A library already queued or scanning is left to finish (alreadyRunning), and one on a storage that is away gets no scan (failed, STORAGE_UNAVAILABLE); neither stops the rest.
- Authorisation
- Bearer token or API key · Session cookie
- Body
application/json·object
- 202Success.
application/json·object - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.application/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:manage, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope
/scans/active#List the scans running and waiting
Every library’s scan running now, the longest-running first, and those waiting for a free scanner in the order they will start. Each carries the newest counts the server has and the stage it last reported. A private library is left out while it is locked.
- Authorisation
- Bearer token or API key · Session cookie
- 200Success.
application/json·ScanActivity - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:manage, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope
No endpoint here matches. Try another word, or look in another area.