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

Overview

Returns the extracted content for a specific page as raw markdown. Does not require authentication for public documents.

Request

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

Response (200)

Returns text/markdown content type with the page content as markdown.
# Annual Report

This document summarizes the fiscal year...