Upload a Document
Upload a Microsoft Word (.docx) or PDF file to create a new document in Agent Office. The document will be stored and ready for AI-powered editing.Request Parameters
The document file to upload (Word .docx or PDF)
Time to live in seconds (300-21600). Default is 3600 (1 hour). The TTL is
refreshed after each edit.
If true, returns a markdown representation of the document. Default is false.
Enable tracked changes mode - stores a backup copy of the original document.
When enabled, all edits will be shown as tracked changes when you download the
document. Default is false.
Author name for tracked changes attribution. Only used if tracked_changes is
enabled. Default is “Anonymous”.
Response
Unique identifier for the uploaded document (UUID format)
Original filename of the uploaded document
ISO 8601 timestamp when the document was created
MIME type of the uploaded file
Array of image annotations if the document contains images
Markdown representation of the document (only if return_markdown=true)
Example Response
The
docId from the response is required for all subsequent operations
(editing, downloading, etc.)Code Examples
Tracked Changes Feature
When you enabletracked_changes=true at upload time, Agent Office stores a backup copy of your original document. When you make edits and download the document, all changes will be shown as Microsoft Word track changes, making it easy to review what was modified.
Example workflow:
- Upload document with
tracked_changes=true - Make edits using the edit endpoint
- Download the document - changes will appear as Word track changes
Use tracked changes when you need a clear audit trail of all modifications
made to your document.

