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

Overview

Returns a specific figure node from the document by its 0-based index. Does not require authentication for public documents.

Request

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

Response (200)

{
  "type": "figure",
  "value": "Figure 1: Revenue breakdown by segment"
}