# Send a document for signature

> POST /api/v1/documents/{id}/send: Send a document for signature.

`POST https://appliflo.com/api/v1/documents/{id}/send`

Creates the envelope, sets recipients, assigns fields, pre-fills any CRM-mapped fields, then invites the initial signing wave. A field assigned to a CC recipient is rejected (422) — CC recipients never sign. Since November 2026 each signer and filler is emailed a one-time code to enter before signing (accessCode defaults to "email"); pass accessCode "none" on a recipient to switch it off. A recipient with delivery "embedded" is never emailed: your app signs them with POST /api/v1/embed/signing-sessions (Business plan or a sandbox).

Send your API key in the `Authorization: Bearer` header. Every response is JSON: `{ success, data, error }`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Document id |
| `Idempotency-Key` | header | no | A client-generated key scoping this request as a retry of a prior identical request. A replay within 24h returns the first response instead of repeating the side effect (e.g. a second send). The key is bound to the request it was first used with: the same key with a different body or target is refused (422, code idempotency_key_reused) |

## Request body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `subject` | string | yes | Up to 998 characters |
| `message` | string | no | Up to 4096 characters |
| `routing` | string | yes | One of: parallel, sequential |
| `recipients` | object[] | yes | 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[].accessCode` | 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 and for an embedded recipient. One of: email, none |
| `recipients[].delivery` | string | no | How the signing link reaches them. "email" (default): invited, reminded and sent any access code by email. "embedded": never emailed (no invite, no reminders, no access code); when their turn comes, your app signs them in its own page with POST /api/v1/embed/signing-sessions, and the document's activity reads "Waiting for <name> to sign in your app". Needs the Business plan or a sandbox workspace (402 `plan_feature`). A cc can't be embedded (422 `cc_not_embeddable`). One of: email, embedded. Default: "email" |
| `assignments` | object[] | no | Up to 500 items |
| `assignments[].fieldId` | string | yes |  |
| `assignments[].recipientIndex` | integer | yes | At least 0 |
| `prefill` | object | no |  |
| `prefill.connector` | string | yes |  |
| `prefill.entity` | string | yes |  |
| `prefill.recordId` | string | yes |  |
| `values` | map of string \| string[] | no | Resolved values keyed by field id, stored exactly as given (max 500 values, 4000 chars each). When present the prefill connector is not re-read. Signature fields and fields assigned to a recipient are refused (422). A key may also be a choice-group id (groups[] from GET .../fields): one option for a single question, or a list (max 50) for multi, each named by the option's value or label; the chosen boxes are stored ticked. A group with a box assigned to a recipient in this request, an unknown option, or too many options is refused (422), as is answering a group and also setting one of its boxes |
| `reminderCadence` | object | no | Automatic reminder policy for recipients still blocking signature. Omit to accept the default (reminders on, every 24h). everyHours may only slow reminders down, never speed them up |
| `reminderCadence.enabled` | boolean | no | Default: true |
| `reminderCadence.everyHours` | integer | no | 24 to 720. Default: 24 |
| `esignRiskAcknowledged` | boolean | no | Some hosted government forms (USCIS I-130 and others, SSA SS-5, IRS 8879 and 4506-C, the Commonwealth statutory declaration) are fill-and-print only: a send of one is refused (422 esign_not_allowed) whatever this says; download the filled PDF instead. A form whose agency may reject an e-signature needs true (422 esign_ack_required without it) |

## Responses

| Status | Description |
| --- | --- |
| 201 | Envelope sent. |
| 401 | Missing or invalid API key, or `api_key_expired` for a key past its expiry. |
| 402 | `plan_feature`: a recipient with delivery "embedded" needs the Business plan (or a sandbox workspace). |
| 403 | The API key's workspace does not have access to this resource, or `insufficient_scope` (with `required_scope`) for a key without the scope this route needs. |
| 404 | Resource not found in this workspace. |
| 409 | A request with this Idempotency-Key is already in progress. |
| 422 | Request failed validation, or `cc_not_embeddable` (a cc with delivery "embedded"). |
| 500 | Internal error. |

## 201 response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | true | yes |  |
| `data` | object | yes |  |
| `data.envelopeId` | string | yes |  |
| `data.invited` | integer | yes |  |
| `data.prefilled` | integer | yes |  |

See also: [Errors](https://dev.appliflo.com/guides/errors), [Rate limits](https://dev.appliflo.com/guides/rate-limits), [Idempotency](https://dev.appliflo.com/guides/idempotency).
