Send a document
send_documentSends a document to be translated (PDF, image or Office file, up to 25 MB): a file the user attached in chat as document, a public https url, or content_base64 with its filename when you hold the bytes yourself. It is measured the way the order form measures an upload; the response carries the billable pages and a file_token to pass to get_quote and create_order, valid for 24 hours and one order. If none of these is possible, create the order from the customer's page count and they upload the document at the status_url after paying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https URL of the document, ending in its extension, e.g. https://files.example.com/birth-certificate.pdf. Omit when sending document or content_base64. | |
| document | No | A file the user attached in the chat, passed as the host provides it. Use this for attachments; omit url and content_base64. | |
| filename | No | The document's filename with its extension, e.g. birth-certificate.pdf; required with content_base64. | |
| content_base64 | No | The document's bytes encoded as base64, when you hold the file rather than a URL or an attachment. Send filename with it. |