Create a document from a saved template
Creates a fresh draft document with a copy of the template's file and fields (already placed: do not call detect). The template is never modified. Pass the result to POST /documents/{id}/send.
Creates a fresh draft document with a copy of the template's file and fields (already placed: do not call detect). The template is never modified. Pass the result to POST /documents/{id}/send.
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*stringSaved template id from GET /saved-templates.
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
name?stringDefaults to the template's name.
1 <= length <= 255The new draft document.
application/json- response
success*booleandata*curl -X POST 'https://appliflo.com/api/v1/saved-templates/string/create-document' \ -H 'Content-Type: application/json' \ -d '{}'{ "success": true, "data": { "document_id": "string", "template_id": "string", "name": "string", "field_count": 0, "roles": [ { "key": "string", "label": "string" } ], "fields": [ { "field_id": "string", "label": "string", "semantic_type": "string", "page": 0, "role": "string" } ] }}Cancel a batch POST
Every row not sent yet is cancelled; envelopes already sent are untouched (void them one by one if needed). A batch that already finished is refused.
Save a draft document as a template POST
Copies the document's PDF and its fields into a new saved template, and carries over any saved mappings the document's form has. The document itself is not changed.