Skip to main content
GET
Read a regulatory document's text in chunks

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

documentId
string<uuid>
required

Document id from listRegulatoryDocuments.

Query Parameters

maxBytes
integer
default:16384

Maximum UTF-8 bytes of text per response, 4–65536 (default 16384). Character boundaries may shorten a chunk. Repeat unchanged with cursor.

Required range: 4 <= x <= 65536
cursor
string

Opaque nextCursor. Fixed 24-hour lifetime; bound to caller, document, maxBytes and text revision.

Required string length: 1 - 128

Response

A revision-bound text chunk with byte location and continuation.

documentId
string<uuid>
required
textRevision
string
required

Identifies this version of the stored text. Documents are updated in place; if it changes, start again without a cursor.

Maximum string length: 68
text
string
required

Stored text, at most maxBytes UTF-8 bytes. Text extracted from PDFs can lose tables and layout; the source file stays the evidence.

Maximum string length: 65536
location
object
required
nextCursor
string | null
required

Continue with the same document and maxBytes, or null at the end. Retrying the same request is safe.