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.
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.)