list_files
List images and files stored in the Mailchimp File Manager. Retrieve file IDs and hosted URLs for embedding in campaigns or templates.
Instructions
List images and files stored in the account's File Manager.
Use to discover file_id and hosted URLs for embedding images in campaign or template content. Use get_file for one file's full metadata, upload_file to add a new one, and list_file_folders to browse the folder structure.
Authenticated via API key. Max 10 concurrent requests. Read-only, safe to retry.
Args: count: Files to return (1-1000, default 10). offset: Pagination offset. Use when total_items exceeds count. type: Optional media type filter. Either 'image' or 'file' (non-image). Omit for all. account: Optional account name (e.g. 'marketing') configured via MAILCHIMP_API_KEY_. Omit to use the default account. See list_accounts.
Returns: JSON with total_items and files array. Each file: id (use as file_id), name, type ('image' or 'file'), full_size_url (hosted URL for embedding), thumbnail_url, size (bytes), width, height, folder_id, created_at, created_by.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| count | No | ||
| offset | No | ||
| account | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |