Skip to Content
Documents

Get the file

GET
/documents/{id}/file

Downloads the file OpenReader reads from. In presigned mode the response redirects to a short-lived storage URL.

Authorization

headerAuthorizationBearer <token>

Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.

Scope: documents:read

Path Parameters

id*string
Match^[a-f0-9]{64}$

Response Body

File bytes in proxy mode, always sent as an attachment.

response?file*/*
Formatbinary
Example Request
curl -X GET 'https://reader.example/api/v1/documents/string/file'
Example Response
"string"