Fetches the file uploaded via request_upload_url and runs the same parsing pipeline as upload_document_base64. Returns structured HTML with unique chunk IDs on every paragraph, heading, table, row, and cell — enabling the AI to make targeted structural edits via chat (“remove row 3 of the pricing table” works). Tables, borders, shading, alternating row colors, fonts, and inline styling preserved on edit and export. Counts as one billable operation. Specify parse_mode=‘document’ to load as the active editable document, or parse_mode=‘attachment’ to load as read-only AI-searchable reference.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The upload_id returned by request_upload_url.
Session ID to load this document/attachment into.
200Same filename passed to request_upload_url.
255'document' = parse and load as the active editable doc (returns parsed HTML); 'attachment' = process asynchronously as AI-searchable reference (returns job_id to poll).
document, attachment