POST /v1/email/templates
POST
/v1/email/templates
const url = 'https://seu-endereco-da-api/v1/email/templates';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","subject":"example","preheader":"example","designJson":{},"html":"example","text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/email/templates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "subject": "example", "preheader": "example", "designJson": {}, "html": "example", "text": "example" }'Permissão que a Chave de acesso precisa: Criar e disparar campanhas (campaigns:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
name
required
string
subject
required
string
preheader
string
designJson
required
object
key
additional properties
any
html
required
string
text
string
Example generated
{ "name": "example", "subject": "example", "preheader": "example", "designJson": {}, "html": "example", "text": "example"}Responses
Seção intitulada “Responses”Media typeapplication/json
object
id
required
string
name
required
string
subject
required
string
preheader
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
designJson
required
The editor’s own document; the backend never reads it
object
key
additional properties
any
html
required
The compiled html the campaign sends
string
text
required
string
Example generated
{ "id": "example", "name": "example", "subject": "example", "preheader": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "designJson": {}, "html": "example", "text": "example"}The html lacks the unsubscribe link or the sender address