Download a file
Streams the file content directly from R2 through the Worker (R2 egress is free; this avoids presigned-URL redirects and CORS surprises). Pass `?thumbnail=true` for the thumbnail variant.
Streams the file content directly from R2 through the Worker (R2 egress is free; this avoids presigned-URL redirects and CORS surprises). Pass ?thumbnail=true for the thumbnail variant.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
File ID
Query Parameters
Return thumbnail variant
Value in
- "true"
- "false"
Response Body
application/octet-stream
curl -X GET "https://example.com/files/550e8400-e29b-41d4-a716-446655440000/download""string"Delete a file DELETE
Archives (soft-deletes) a file: the record and its R2 object are retained, and a retention job physically purges them after the retention window. Only an owner of the owning organization may archive; delivery-proof files and files attached to non-draft orders are immutable.
Finalize a direct file upload POST
Confirms that a previously presigned upload completed successfully, validates the stored object metadata and size, and then creates the file DB record.