Scanning books in: captures (barcodes, cover and slab photos, search picks), matching, fixing the match, and adding the copy.
/scansSigned inWhat you’ve scanned, newest first: what was captured, what it matched and the copy it became. Filter by state (needs_review: the ones waiting for you), session or intent.
/scansSigned inFrom a barcode decode, a photo capture (upload it, then process the scan) or a pick from search. Idempotent on clientKey: a retried capture returns the scan it already made. Barcode and manual scans are matched right away when process is true. 240 a minute.
/scans/{id}Signed inRemoves the scan and its photos. A copy it was added as stays in the collection.
/scans/{id}Signed inPick a candidate (select: { index }, or a search result as select: { candidate }; null clears the pick), choose the edition, edit the copy draft, change the intent, skip it, or restore a skipped scan.
/scans/{id}/addSigned inAdds the chosen (or top) candidate as a copy, with the session’s defaults and the scan’s draft. The body is optional: index adds another candidate, draft sets copy fields. Adding twice answers the same copy.
/scans/{id}/processSigned inMatches (or re-matches) a scan: a barcode lookup, then an AI read of the cover or slab photo when one was uploaded and the barcode didn’t settle it. The body is optional: the uploaded imagePath and thumbPath, a typed addOn, coverHash, mode, or rereadPhoto: true. 30 a minute.
/scans/{id}/provisionalSigned inFor a book no source knows yet: creates a provisional catalog issue and picks it for this scan. Catalog moderators review it before it’s everyone’s.
/scans/{id}/searchSigned inCatalog candidates for fixing a scan’s match, ranked with this scan’s evidence (its barcode and photo reads). 120 searches a minute.
/scans/batchesSigned inA session (batch) groups a sitting’s scans and applies copy defaults (status, location, price, tags) to every copy added from it. reuseOpen: true returns your open session instead, so a paired phone and the desktop share one tray.
/scans/batches/{id}Signed inRename it, change its copy defaults, or close it.
/scans/bulkSigned inAdds, skips or deletes up to 100 scans at once (“Add all matched”). Each scan answers on its own: one failing doesn’t stop the rest.
/scans/searchSigned inCatalog candidates for “Type it” (no scan yet), with the copies you own and your wishlist entries for each. Up to 16. Shares the 120-a-minute search allowance.
/scans/upload-urlSigned inSigned upload URLs (valid 2 hours) for the scan’s photo and its thumbnail. Upload each with Supabase Storage’s uploadToSignedUrl(path, token, blob) on the scans bucket, then process the scan with the paths.