Skip to Content
Saved templates

Get one version of a saved template

Its roles in signing order, the boxes the sender fills (prefill keys) and the send settings. A finalised version never changes.

GET
/api/v1/templates/{id}/versions/{n}

Its roles in signing order, the boxes the sender fills (prefill keys) and the send settings. A finalised version never changes.

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

Saved template id (saved_templates[].template_id from GET /templates).

n*integer

Version number.

Range1 <= value

Response Body

The version.

application/json
  1. response
success*boolean
data*
Example Request
curl -X GET 'https://appliflo.com/api/v1/templates/string/versions/1'
Example Response
{  "success": true,  "data": {    "version": {      "template_id": "string",      "version": 1,      "current": true,      "note": "string",      "field_count": 0,      "created_at": "2019-08-24T14:15:22Z",      "roles": [        {          "key": "string",          "label": "string",          "kind": "signer",          "order": 1        }      ],      "sender_fields": [        {          "index": 0,          "label": "string",          "type": "text",          "semantic_type": "string",          "group_key": "string",          "option_value": "string",          "bulk": true        }      ],      "fixed_fields": [        {          "index": 0,          "label": "string",          "type": "text",          "locked": true,          "bulk": true        }      ],      "routing": "sequential",      "subject": "string",      "message": "string",      "cc": [        {          "email": "string",          "name": "string"        }      ],      "expiry_days": 0    }  }}