/templates
POST
application/json- body
name*stringLength
1 <= length <= 200subject?string"" or null clears the subject
Length
length <= 998html*stringStored as sent; the dashboard sanitizes at render
Length
1 <= length <= 500000text?string"" or null clears the text part
Length
length <= 500000alias?stringCase-sensitive handle, unique per team; GET /templates/{alias} resolves it
Match
^[A-Za-z0-9][A-Za-z0-9._-]*$Length
1 <= length <= 100from?stringNot supported yet: any value is a 422
reply_to?|array<string>|Not supported yet: any value is a 422
variables?array<unknown>Not supported yet: a non-empty list is a 422
Template created. Templates have no draft/publish cycle: every save is live, so status is always published.
application/json- response
object*"template"Value in
"template"id*stringFormat
uuidcurl -X POST 'https://api.millionsend.com/templates' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "html": "string"}'Example Response
{ "object": "template", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}