Skip to main content
Upload a file (PDF, Word, PowerPoint, Excel, image, and more) to a knowledge source. AGO converts its content to Markdown, creates a new draft document with it, and keeps the original file as an attachment of that document.

Supported File Types

Plain text and Markdown files must use UTF-8 encoding.

Size Limit

The maximum file size is 20 MB.

REST API

Upload a File

Scope required: knowledge:write Send the file as multipart/form-data. Parameters: Example:
Response (201), shortened:

MCP

upload_source_file

Upload a file to a knowledge source via the MCP JSON-RPC interface. The file content must be base64-encoded. Scope required: knowledge:write Parameters: Example:

Error Handling

Upload errors return 422 with one of these codes: