Skip to Content
Documents

List chapters

GET
/documents/{id}/chapters

Uses the reader reading plan and saved settings. Preparing a new plan uses compute limits and returns immediately while work is pending. Audiobook chapter boundaries are unchanged and can differ from these contents.

Authorization

headerAuthorizationBearer <token>

Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.

Scope: documents:read

Path Parameters

id*string
Match^[a-f0-9]{64}$

Response Body

Chapters in reading order, with a segment key for reader goto.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://reader.example/api/v1/documents/string/chapters'
Example Response
{  "data": [    {      "title": "string",      "startOrdinal": 0,      "endOrdinal": 0,      "depth": 0,      "segmentKey": "string",      "page": 0,      "webUrl": "string"    }  ]}