Send a template test
Send a template test with the Mailly email API for AI agents: POST /templates/{templateKey}/test-send. Parameters, request body, responses and code samples.
Sends through the governed send path with testSend=true, recorded as the template_test source.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
templateKey*stringtemplate stable key
application/json- body
version?numberPublished version number
draft?booleanRender the draft (mutually exclusive with version)
locale?stringvariables?to?stringTest recipient
[key: string]?unknownSend result (passed through from the Queue service, JSON)
curl -X POST 'https://api.mailly.site/templates/string/test-send' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'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.
Template details (with version history) GET
Template details (with version history) with the Mailly email API for AI agents: GET /templates/{templateKey}. Parameters, request body, responses and code samples.