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

Overview

Returns the current processing status, page count, and metadata for a document. This endpoint does not require authentication for public documents.

Request

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

Response (200)

{
  "id": "doc-abc123",
  "status": "completed",
  "file_name": "annual-report.pdf",
  "total_pages": 42,
  "pages_completed": 42,
  "inserted_at": "2025-01-15T08:30:00Z",
  "updated_at": "2025-01-15T08:32:00Z",
  "is_public": false
}