convert_document
Convert documents between formats like Word, PDF, spreadsheets, and images. Store the result as a new asset and get a delivery URL when processing finishes.
Instructions
Converts a document (Word to PDF, PDF to Word, a PDF page to an image...).
Stored as a new asset. If status is 'processing', the url answers 202
until the conversion finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Full object key (folder path + filename). Excludes folder/folder_id. | |
| page | No | PDF page to render, for png/jpeg output. | |
| path | No | Path of a local file to send. Give this or content_base64, not both. | |
| folder | No | Destination folder slug path, e.g. 'marketing/2026'. Created if missing. | |
| format | Yes | Target format, e.g. pdf or docx. | |
| filename | No | Filename to store, e.g. 'hero.jpg'. Defaults to the path's name. | |
| folder_id | No | UUID of an existing destination folder. | |
| content_base64 | No | File content, base64-encoded (20 MB max). Requires filename. | |
| auto_create_folders | No | False to require the folder path to exist already. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||