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

# Lead email copy recipients

> Declare up to five addresses to copy on the follow-up engine's emails to one lead.

# Lead email copy recipients

An application that owns its account manager, partner or other per-lead contact
can declare up to five addresses to copy on that lead's follow-up emails. The
declaration says who may be copied; the playbook says which emails are copied.
For example: "Copy the lead's copy recipients on every email that includes
the price list." Erdo stores the delivery addresses and applies them only to
the emails the playbook marks. An email the playbook does not mark records
`not_requested` and goes without CC. The
application remains responsible for its roster and assignment rules.

Addresses are required, validated as email addresses, lowercased and
deduplicated. Names are optional. Every write replaces the full list and
includes the application's caller-chosen revision. Erdo applies a write only
when that number is greater than the revision already stored for the lead, so
an older concurrent update cannot overwrite a newer assignment. An empty list
explicitly means nobody is copied. A lead without a declaration returns
`declared: false` and an empty list.

The dataset is addressed by slug. The lead can be its canonical lead UUID or
22-character lead reference. Merged references resolve to the surviving lead’s
declaration; declarations stored under absorbed identities are not combined.
A read can use a signed-in session or an unscoped organization API key; a
scoped API key cannot read it. Replacing a declaration is consequential and
requires an unscoped organization API key; sessions and scoped keys cannot
write it. A merged-away lead reference is read-only: writes must name the
surviving lead reference returned by the read.

## Read a declaration

```http theme={null}
GET /v1/datasets/{datasetSlug}/leads/{leadRef}/copy-recipients
```

```json theme={null}
{
  "recipients": [{"email": "ana@example.com", "name": "Ana Lopez"}],
  "revision": 1732350000123,
  "declared": true,
  "updated_at": "2026-11-23T12:30:00Z"
}
```

Before the first declaration, the response is `{"recipients": [], "revision": 0, "declared": false, "updated_at": null}`.

## Replace a declaration

```http theme={null}
PUT /v1/datasets/{datasetSlug}/leads/{leadRef}/copy-recipients
Content-Type: application/json
```

```json theme={null}
{
  "recipients": [{"email": "ana@example.com", "name": "Ana Lopez"}],
  "revision": 1732350000123
}
```

The response returns the stored recipients and revision, `applied`, and
`updated_at`. `applied: false` means the submitted revision was equal to or
older than the stored revision; the response still contains the current
declaration. Invalid addresses or more than five recipients are rejected.

An empty list clears the active recipients while retaining an explicit
declaration:

```json theme={null}
{"recipients": [], "revision": 1732350000124}
```

`recipients` is required on a PUT. Omitting it or sending `null` is rejected;
send `[]` when the intended result is an explicit empty declaration.

The lead's next-action history and timeline record the result under
`email_copy_delivery` for a follow-up email, or `accompanying_email.copy_delivery`
for an email sent beside a gated action. Its `status` is `copied`,
`not_requested`, `none_declared`, `empty`, `lookup_failed` or `capped`. Undeliverable addresses
and addresses that have already received 50 copied follow-ups from the
organization in the preceding 24 hours are omitted and appear in `dropped`
with reason `undeliverable` or `daily_cap`. The selected recipient snapshot is
frozen when the send is claimed, so a retry uses the same CC list even if the
application changes the current declaration afterward. If a status lookup
fails, the email proceeds without CC and the failure is visible in the
decision.

Copied recipients receive the same email as the lead, including its tracked
links. A link a copied recipient opens is recorded as the lead's open: one
email cannot tell its recipients' clicks apart.

The CLI provides matching commands. For `set`, the file contains the complete
JSON array of recipient objects, or `[]` to clear the declaration:

```bash theme={null}
erdo leads copy-recipients get leads lead-reference
erdo leads copy-recipients set leads lead-reference --revision 1732350000123 --file recipients.json
```

The MCP tools are `erdo_get_lead_copy_recipients` and
`erdo_set_lead_copy_recipients`. The set tool has the same unscoped
organization API-key requirement as the REST PUT.


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