Download a document
GEThttps://platform.docana.com/api/v1/documents/:id/download/
Streams the document bytes. size (e.g. SMALL, MEDIUM, LARGE, WHATSAPP) serves a resized variant for images; pdfPreviewType=image serves a PDF page rendered as an image. The response content type follows the stored file.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The document bytes (content type of the stored file)
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
No access to the document
A resource referenced by the path does not exist or is not visible to the caller.
Unexpected server error.