Skip to Content
Saved templates

Send a Ready saved template

Creates a document from the template's finalised version (its own copy of the PDF and every box) and sends it in one call: each role's person, in the template's signing order, fills and signs only their boxes; the template's fixed CCs, reminders and expiry apply. The template is never modified, and the envelope keeps its version. A person with delivery "embedded" is never emailed: your app signs them with POST /api/v1/embed/signing-sessions (Business plan or a sandbox).

POST
/api/v1/templates/{id}/send

Creates a document from the template's finalised version (its own copy of the PDF and every box) and sends it in one call: each role's person, in the template's signing order, fills and signs only their boxes; the template's fixed CCs, reminders and expiry apply. The template is never modified, and the envelope keeps its version. A person with delivery "embedded" is never emailed: your app signs them with POST /api/v1/embed/signing-sessions (Business plan or a sandbox).

Authorization

bearerAuth
headerAuthorizationBearer <token>

Workspace API key, e.g. "Authorization: Bearer aflo_live_<64 hex chars>". Keys are hashed at rest and shown only once at creation. A key has scopes: read (GET routes), draft (create or change documents, fields and templates) and send (send, void, remind and bulk send); a call outside them gets 403 insufficient_scope. A key may expire (401 api_key_expired). Keys made before scopes existed have full access.

Path Parameters

id*string

A Ready template's id from GET /templates items[]: a saved template, or an AppliFlo contract or official form AppliFlo set up (lib_). A form AppliFlo hasn't set up can't be sent this way: create a document from it (POST /templates/{id}/create-document), then send that.

Header Parameters

Idempotency-Key?string

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).

Lengthlength <= 255

Request Body

application/json
  1. body
version?integer

Pin a version. Defaults to the template's current version.

Range1 <= value
recipients*array<>

One person per template role. Every role needs a person; two roles can't share an email.

Items1 <= items <= 10
cc?array<>

Extra copies, added to the template's fixed CCs (which can't be removed). Duplicates are dropped.

Itemsitems <= 20
prefill?

Values for the boxes the template gives the SENDER, keyed by the version's field index. A box in a choice question takes the question's answer (an option value, or a list for a multi-choice question). A key for a box a recipient fills is refused with role_owned_field.

fixed_overrides?

The sender's values for the template's DEFAULT fixed boxes (fixed_fields[] with locked: false), keyed by fixed_fields[].index: text, true/false for a tick box, or option value(s) for a choice question. A Locked box is set by the template: an override is refused with 422 locked_field. A Locked box whose workspace or My details value is empty is refused with 422 missing_detail. An AppliFlo library form's Ask on copy box that nothing answers is refused with 422 unanswered_ask: give it a value here.

remember_defaults?array<>

fixed_fields[].index of Default boxes whose fixed_overrides value is saved as the template's default for everyone, once the envelope is sent. A Locked box is refused (422 locked_field).

local_day?string

The sender's own calendar day (YYYY-MM-DD) for fixed date boxes; defaults to the server's UTC day.

Match^\d{4}-\d{2}-\d{2}$
esign_risk_acknowledged?boolean

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).

risk_accepted?boolean

An AppliFlo library contract that AppliFlo's lawyer hasn't reviewed is sent at your own risk (Terms section 8A). Not needed when the sender already accepted this contract version (in the app or an earlier send); otherwise send true to confirm it, or such a contract is refused with 409 contract_risk_required. The confirmation is recorded (with the request's IP and browser) only when the send goes ahead.

adopt_signature?boolean

The sender adopts their saved signature for this envelope. A template with a Sender-signs box needs a signed-in sender who adopts it: sent with an API key, such a template is refused (422 signature_not_adopted, "Sender signatures need a signed-in sender.").

subject?string

Defaults to the template's subject. Placeholders such as {{Recipient 1 name}} are resolved.

Lengthlength <= 200
message?string

Defaults to the template's message. {{Recipient first name}} becomes each recipient's own first name.

Lengthlength <= 4000

Response Body

The envelope was created and its first recipients emailed.

application/json
  1. response
success*boolean
data*
Example Request
curl -X POST 'https://appliflo.com/api/v1/templates/string/send' \  -H 'Content-Type: application/json' \  -d '{  "recipients": [    {      "role": "string",      "name": "string",      "email": "user@example.com"    }  ]}'
Example Response
{  "success": true,  "data": {    "envelope_id": "string",    "invited": 0,    "template_version": 1  }}