/scans/upload-urlSigned 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.
collector.createScanUploadUrl()scans:writeX-Request-Idobject
scanIdstring (uuid)required200OKWhere to upload the photo and thumbnail.
object
bucket"scans"requiredimageobjectrequiredpathstringrequiredscans/{uid}/{scanId}/{uuid}.jpg in the scans bucket.
tokenstringrequiredThe upload token (Supabase Storage uploadToSignedUrl).
signedUrlstring (uri)requiredValid 2 hours.
thumbobjectrequiredpathstringrequiredscans/{uid}/{scanId}/{uuid}.jpg in the scans bucket.
tokenstringrequiredThe upload token (Supabase Storage uploadToSignedUrl).
signedUrlstring (uri)requiredValid 2 hours.
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
unauthorized: Not signed in (no session or token, or an expired one).
scan_not_found: No scan of yours with that id.
storage_quota: Your photo storage is full.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
rate_limitedtemporarily_blocked
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
internal: Something went wrong on our side (quote the requestId).
upload_url_failed: Storage couldn’t sign the upload; try again.