# send_envelope

> Create an envelope for document_id, set recipients + field assignments, and send the initial signing invitations.

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.

Create an envelope for document_id, set recipients + field assignments, and send the initial signing invitations. Every envelope needs at least one 'signer' recipient; 'filler' recipients fill assigned fields without signing; 'cc' recipients only receive the completed copy and can NEVER be assigned a field — an assignment targeting a cc recipient is rejected (this is enforced server-side, not just client-side). Returns the new envelope_id for use with get_envelope/remind_envelope/void_envelope/download_document. Each signer/filler is emailed a one-time code to enter before signing unless that recipient has access_code "none". A recipient with delivery "embedded" is never emailed (no invite, reminders or code): your app signs them in its own page with POST /api/v1/embed/signing-sessions (Business plan or a sandbox). Optional `values` pre-fill what the sender knows: field_id -> text, or group_id -> option (single) / [options] (multi) for a choice question from list_fields. Signing fields, and any field or question this request assigns to a recipient, are refused (422) — the recipient fills those. subject, routing and recipients are required, unless use_prepare_draft: true sends what the Prepare tools (or the web Prepare page) saved for the document instead. Two steps: called WITHOUT confirm: true it does nothing and returns an error saying what it would do (the details are in structuredContent); show that to the user and, once they agree, call again with the same arguments and confirm: true. Some hosted government forms (e.g. USCIS I-130, SSA SS-5, IRS 8879) are fill-and-print only: any send of them is refused (422 esign_not_allowed); download the filled PDF instead. A form whose agency may reject an e-signature needs esign_risk_acknowledged: true (422 esign_ack_required without it). Masked values (•••123) can't be sent back: ask the person for the full number.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `document_id` | string | yes |  |
| `use_prepare_draft` | boolean | no | true: send the document's saved Prepare state (set_envelope_recipients, ai_assign, set_box_owner, skip_box, set_fixed_value, or the web Prepare page) instead of recipients/assignments/values, which are then refused. subject and message stay optional overrides. One of: true |
| `prepare_draft_version` | integer | no | With use_prepare_draft and confirm: true, required: the prepare_draft_version the unconfirmed call showed. A draft changed since is refused (409 draft_changed). At least 1 |
| `assign_run_id` | string | no | With use_prepare_draft: ai_assign's run_id, so the send teaches AI assign. Up to 64 characters |
| `assign_applied` | string[] | no | With assign_run_id: ai_assign's applied box ids. Up to 2000 items |
| `local_day` | string | no | With use_prepare_draft: the sender's own day (YYYY-MM-DD), for a Fixed date such as the day it is sent |
| `confirm` | boolean | no | true to really do it. Without it nothing happens: you get an error describing what would happen, to show the user |
| `idempotency_key` | string | no | Same key = same call: a retry (e.g. after a timeout) returns the first result instead of doing it again. The same key with other arguments is refused (422 idempotency_key_reused). Up to 255 characters |
| `esign_risk_acknowledged` | boolean | no | The sender acknowledges the agency may reject an electronic signature on this form (warn-mode forms only) |
| `subject` | string | no | Up to 998 characters |
| `message` | string | no | Up to 4096 characters |
| `routing` | string | no | One of: parallel, sequential |
| `recipients` | object[] | no | 1 to 50 items |
| `recipients[].name` | string | yes | Up to 256 characters |
| `recipients[].email` | string | yes | Format: email. Up to 254 characters |
| `recipients[].role` | string | yes | One of: signer, filler, cc |
| `recipients[].access_code` | string | no | Identity check before signing. Default "email": the person is emailed a one-time code to enter after opening their link. "none" switches it off. Ignored for cc. One of: email, none |
| `recipients[].delivery` | string | no | How their signing link reaches them. Default "email": invited, reminded (and sent any access code) by email. "embedded": never emailed (no invite, no reminders, no code); your app signs them in its own page with POST /api/v1/embed/signing-sessions when their turn comes. Needs the Business plan or a sandbox workspace (else 402 plan_feature). Never a cc (422 cc_not_embeddable). One of: email, embedded |
| `assignments` | object[] | no | Up to 500 items |
| `assignments[].fieldId` | string | yes |  |
| `assignments[].recipientIndex` | integer | yes | At least 0 |
| `values` | map of string \| string[] \| object | no | field_id -> text; group_id -> option (single) or [options] (multi), or { chosen?, other } for a question answered with its Other box |
