Skip to main content
GET
/
v1
/
documents
/
{id}
/
original.pdf
curl -O https://api.okrapdf.com/v1/documents/doc-abc123/original.pdf \
  -H "Authorization: Bearer okra_YOUR_KEY"

Overview

Stream the original PDF that was uploaded for this document. Served from R2 with CDN caching.

Request

id
string
required
Document ID (e.g. doc-abc123) or 6-char short hash.
curl -O https://api.okrapdf.com/v1/documents/doc-abc123/original.pdf \
  -H "Authorization: Bearer okra_YOUR_KEY"

Response

Returns the raw PDF binary with Content-Type: application/pdf.