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).
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).
bearerAuthAuthorizationBearer <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.
id*stringA 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.
Idempotency-Key?stringA 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).
length <= 255application/json- body
version?integerPin a version. Defaults to the template's current version.
1 <= valuerecipients*array<>One person per template role. Every role needs a person; two roles can't share an email.
1 <= items <= 10cc?array<>Extra copies, added to the template's fixed CCs (which can't be removed). Duplicates are dropped.
items <= 20prefill?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?stringThe sender's own calendar day (YYYY-MM-DD) for fixed date boxes; defaults to the server's UTC day.
^\d{4}-\d{2}-\d{2}$esign_risk_acknowledged?booleanSome 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?booleanAn 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?booleanThe 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?stringDefaults to the template's subject. Placeholders such as {{Recipient 1 name}} are resolved.
length <= 200message?stringDefaults to the template's message. {{Recipient first name}} becomes each recipient's own first name.
length <= 4000The envelope was created and its first recipients emailed.
application/json- response
success*booleandata*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" } ]}'{ "success": true, "data": { "envelope_id": "string", "invited": 0, "template_version": 1 }}Retry a batch's failed rows POST
Every failed row goes back in the queue with fresh attempts. Safe to repeat: queued and sent rows are never touched, and no envelope is sent twice.
Send a Ready saved template to many POST
One envelope per row. Every row is checked like the app's review step: a blank row, a missing or invalid email, the same person twice for a role, or two roles sharing an email leaves that row out (reported in rows[]); the rest are queued and sent in the background, paced under the email limit. Each sent envelope is metered once, like a single send (envelope.sent, source api). Poll GET /bulk-batches/{id}. An Idempotency-Key returns the batch the key already made. Limits: the batch must fit this month's envelopes (quota_exceeded), a workspace runs at most 2 batches at once (too_many_running), and a key starts at most 10 batches a minute (429). A batch pauses if the month's envelopes run out or the workspace is suspended, and resumes on its own.