# set_envelope_recipients

> Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy).

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: destructive: it emails people or cancels a send, so clients ask you first.

Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy). Give client_id to fill the name and email from a Clients record (a name or email you also give wins). It replaces the whole list; a recipient keeps their key (and the boxes given to them) when you pass the same key or label, and a recipient you leave out loses their boxes; a recipient who becomes a CC loses their boxes, and a filler their signature boxes (listed in cleared_boxes). The first client_id also becomes the document's client when it has none. Nobody can be marked as the sender here, and the role the person marked as their own ("That's me") stays as it is and can't be named. Nothing is emailed. Returns the document's saved Prepare state (recipients, routing, each box's owner and value, version; the same state the web Prepare page shows; a government ID number in a box shows only its last 3 characters, masked: true, and is sent in full), a box tally, and send: whether it is ready to send (else why not) and the web link to review it. When ready, send it with send_envelope and use_prepare_draft: true.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `document_id` | string | yes | The document's id (from upload_document, create_from_template or a document list) |
| `recipients` | object[] | yes | 1 to 10 items |
| `recipients[].key` | string | no | Keep an existing recipient's key (e.g. "r1"); new ones get one. Up to 64 characters |
| `recipients[].label` | string | yes | The role, as the form names it ("Applicant"). Up to 120 characters |
| `recipients[].name` | string | no | Up to 200 characters |
| `recipients[].email` | string | no | Format: email. Up to 254 characters |
| `recipients[].kind` | string | yes | One of: signer, filler, cc |
| `recipients[].party_type` | string | no | One of: applicant, applicant_secondary, director, sponsor, employer, employee, agent, witness, guarantor, guardian, interpreter, other |
| `recipients[].client_id` | string | no | A client from the workspace's Clients: their name and email fill in |
| `routing` | string | no | sequential (in this order, the default) or parallel. One of: sequential, parallel |
