GuideLab API

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.

GET
/files/{id}/download

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.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

File ID

Query Parameters

thumbnail?string

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"
Empty
Empty