upload_file
Upload base64-encoded images and files to Mailchimp's File Manager for embedding in campaigns and templates. Returns a hosted URL.
Instructions
Upload a new image or file to the File Manager (base64-encoded).
Enables programmatic image hosting for campaign and template content: upload here, then reference the returned full_size_url in your HTML. Use list_file_folders to target a folder, list_files to browse existing files, and delete_file to remove one.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: name: File name including extension (e.g. 'hero.png'). Shown in the File Manager. file_data: The file content, base64-encoded (not a URL or raw bytes). folder_id: Optional folder ID (from list_file_folders) to upload into. Omit for the root. account: Optional account name (e.g. 'marketing') configured via MAILCHIMP_API_KEY_. Omit to use the default account. See list_accounts.
Returns: JSON with id (use as file_id), name, type, full_size_url (hosted URL for embedding), thumbnail_url, size, width, height, folder_id, created_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| account | No | ||
| file_data | Yes | ||
| folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |