Generate Batch
generate_batchSubmit multiple leads for batch email sequence generation (ASYNC).
Returns IMMEDIATELY with a list_id. Processing runs in the background. After calling this, poll get_list_status every 15-30 seconds until processing_status is 'completed' or 'failed', then call export_list.
You must have a campaign_id first. Call list_campaigns if you don't have one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_name | No | Display name for this batch in MachFive UI. | |
| leads_json | Yes | JSON array of lead objects. Each MUST have "email". Optional: name, title, company, company_website, linkedin_url. Example: '[{"email":"jane@acme.com","name":"Jane Doe"}]' | |
| campaign_id | Yes | Campaign UUID from list_campaigns. | |
| email_count | No | Number of emails per lead, 1-5. | |
| approved_ctas | No | Comma-separated CTAs. Omit to use campaign defaults. | |
| campaign_angle | No | Additional context/angle for personalization. | |
| email_signature | No | Signature appended to each email. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |