> ## Documentation Index
> Fetch the complete documentation index at: https://docs.manypi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sending tools

> Enroll leads, send email and read the results.

> [!WARNING]
>
> Both tools below queue **real email to real people** and require a paid ManyPI
> plan. Nothing sent can be recalled.

## `enroll_leads`

> [!NOTE]
>
> Destructive · reaches the web

Enroll leads into a campaign, queuing the sequence for real sending and
respecting the inbox's warmup and daily caps. Leads with no email, or already
enrolled, are skipped.

| Argument | Type | |
| - | - | - |
| `campaign_id` | uuid | **Required.** |
| `lead_ids` | uuid\[] (1–1000) | **Required.** From `search_leads`. |

## `send_email`

> [!NOTE]
>
> Destructive · reaches the web

Send a single one-off email to a lead now, outside any sequence. Renders merge
variables against the lead, respects the inbox's cap, and marks the lead
contacted.

| Argument | Type | |
| - | - | - |
| `smtp_config_id` | uuid | **Required.** From `list_inboxes`. |
| `subject` | string | **Required.** Merge variables allowed. |
| `html` | string | **Required.** Simple HTML. |
| `lead_id` | uuid | Used for merge variables and as the default recipient. |
| `to` | email | Explicit recipient; defaults to the lead's address. |

## `outreach_stats`

> [!NOTE]
>
> Read-only

Workspace-wide activity: 14 days of sends (sent/failed/opened per day), replies
per day, active enrollments, and `sent24h` against `capToday`, the combined cap
of all inboxes. `sent24h` is a rolling 24 hours, the window the cap itself
rolls over. Rates are percentages: a `bounceRate14d` of 9.2 means 9.2%. Takes no
arguments.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.