POST/api/rest/autofills
Create an autofill job for a template with provided variables. Returns the generated design and metadata.
Parameters
NameTypeDescription
templateIdstringID of the template to autofill
variablesobjectKey-value pairs for autofill fields
Request Example
POST /api/rest/autofills Authorization: Bearer YOUR_API_TOKEN Content-Type: application/json { "templateId": "string", "variables": { "field": "value" } }
Response Example
{ "design": { "id": "string", "title": "string", "url": "string", "thumbnail": "string", "pageCount": 1, "editUrl": "string", "viewUrl": "string", "createdAt": "ISODate", "updatedAt": "ISODate" }, "meta": { "authType": "api-token" } }