Skip to main content
POST
Upload .docx/PDF/HTML/MD/RTF as the active editable document with chunk-ID structural editing.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json

JSON request body for base64-encoded file uploads.

filename
string
required

Original filename with extension (e.g. 'contract.pdf'). Used for file type detection.

Maximum string length: 512
file_base64
string
required

Base64-encoded file content.

Maximum string length: 50000000
session_id
string | null

Session ID. Auto-generated if not provided.

Maximum string length: 256
return_html
boolean
default:false

With a session_id: false (default) returns compact metadata only (chunks_count, version_id, page_setup) — the document is loaded into the session and you edit it via chat, keeping your context small; true returns the full parsed HTML inline. Ignored on the convert-only path (no session_id), which always returns the converted html.

Response

Successful Response