Read the bookmark/chapter outline of a PDF as JSON with target pages – chapter boundaries for clean RAG chunking.
| Name | Type | Description |
|---|---|---|
file | file · required | PDF to read the outline from. |
curl -X POST https://api.bigapi.dev/v1/pdf/outline -H 'Authorization: Bearer $KEY' -F 'file=@book.pdf'
{
"has_outline": true, "entries": 12, "total_pages": 240,
"flat": [ { "title": "Chapter 1", "page": 5, "depth": 1 } ],
"_meta": { "op": "pdf.outline", "durationMs": 41.0 }
}