documents array. Each document must have a type field that determines how Matil receives the content.
URL
Send a direct download link. Matil fetches the file and processes it.Base64
Send the file content encoded in base64. Always includemime_type so Matil knows how to process the file.
Encoding a file to base64
Text
Send plain text directly. This is useful for passing additional instructions or context alongside other documents, or for processing text that you already have extracted.Multiple documents
You can send multiple documents in a single request. Matil processes them together as a single unit.Per-document metadata
Each document accepts an optionalmetadata object for your own tracking: