POST/api/rest/autofills
Create an autofill job for a template with provided variables. Returns the generated design and metadata.
Parameters
Name | Type | Description |
---|---|---|
templateId | string | ID of the template to autofill |
variables | object | Key-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" }
}