v1
Upload Document To Editor
Upload a document file and load it into the editor.
Converts the file to HTML with formatting preserved (tables, colors, images). Images are extracted to cloud storage and referenced by URL. Returns the HTML for the frontend editor to display.
AI indexing happens automatically on the first chat message. For API clients who want immediate indexing, pass ?index=true.
POST
Upload Document To Editor
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Query Parameters
Set to 'true' for immediate AI indexing (API clients). Default: conversion only.
Body
multipart/form-data
Response
Successful Response
Previous
Export the current document with full fidelity. Five output formats (`docx`, `pdf`, `html`, `markdown`, `txt`); per-request customisation for paper size, orientation, margins, filename, image embedding, and optional PDF watermarks.Render the current document in the requested format and return the file bytes as a streaming response. Three input modes:
- **Mode A** — send HTML content inline via `html` (up to ~20 MB).
- **Mode B** — send a `session_id` to export the session's current document.
- **Mode C** — for documents above 20 MB of HTML, first POST to `/v1/uploads` (purpose `export-html`), PUT the HTML to the returned signed URL, then call this endpoint with `upload_id`.
Non-fatal issues during render are returned in the `X-Export-Warnings` response header as base64-encoded JSON. Documents above 100 MB return 413 with `suggested_action: 'email_request'` — switch to `POST /v1/documents/export/email-request`.
Next
Upload Document To Editor

