Send a test email
send_test_emailSend ONE rendered preview of a sequence step variant to a single address, from a chosen mailbox, exactly as a lead would get it. Take variantId from get_campaign (sequence[].variants[].id) and accountId from list_mailboxes. Limited to 12 per day per workspace. The same test is sent once per 24h even if the call is repeated (e.g. after a dropped connection); to deliberately send it again, pass a new resend value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Campaign id (UUID). | |
| leadId | No | Lead whose data fills the merge tags (from list_leads). | |
| resend | No | Only to deliberately send the same test again within 24h: any new value, e.g. "2". Never sent to the API. | |
| accountId | Yes | Mailbox to send from. | |
| recipient | Yes | Where to send the test — usually the user’s own address. | |
| variantId | Yes | `sequence[].variants[].id` from get_campaign. | |
| personalization | No | `lead` renders with a real lead (`leadId`); `dummy` leaves lead tags EMPTY (only sender tags resolve). Default: `lead` when leadId is given, else `dummy`. |