When to use the REST API
The REST API works with the same existing tables as the app. It is for server-side integrations: add a URL, text, or inline file as a row, start processing, track the run, read results, and export data. The default add flow is one primary source as one new row; when reading rows, extended rows can return the primary `document` plus `documents[]` with related attachments. In rare cases, row-add can return 202 with committed=true and reload_required=true; the write succeeded, but the client should reload rows before follow-up processing. For AI agents in ChatGPT or local MCP clients, use the MCP documentation.