v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-226780228.2 KB
Documents

Extract Document Pages

Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format="url", pages that fail URL generation fall back to base64 data URIs (mixed output possible).

post/documents/pages

Headers

authorizationstring nullable

Request body

document_idstring required

ID of the document to extract pages from

start_pageinteger required

Starting page number (1-indexed)

end_pageinteger required

Ending page number (1-indexed)

output_format'base64' | 'url' nullable

How to return page images: base64 (default) or url

Response

Successful Response

document_idstring required
pagesstring[] required
start_pageinteger required
end_pageinteger required
total_pagesinteger required