Publish a new template version
Publish a new template version with the Mailly email API for AI agents: POST /templates/{templateKey}/publish. Parameters, request body, responses and code samples.
POST
Checks the from-domain verification status and the marketing footer configuration before publishing.
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
templateKey*stringtemplate stable key
Published
application/json- response
success*booleantemplate*version*[key: string]?unknowncurl -X POST 'https://api.mailly.site/templates/string/publish'{ "success": true, "template": { "property1": null, "property2": null }, "version": { "property1": null, "property2": null }, "property1": null, "property2": null}Create an email template (draft) POST
Create an email template (draft) with the Mailly email API for AI agents: POST /templates. Parameters, request body, responses and code samples.
Render a template preview POST
Render a template preview with the Mailly email API for AI agents: POST /templates/{templateKey}/render. Parameters, request body, responses and code samples.