Crear plantilla
POST
/v1/bulk/templates
const url = 'https://api.mailerdash.com/v1/bulk/templates';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","subject":"example","html":"example","body_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://api.mailerdash.com/v1/bulk/templates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "subject": "example", "html": "example", "body_text": "example" }'Authorizations
Sección titulada «Authorizations »Request Body required
Sección titulada «Request Body required » Media type application/json
object
name
required
string
subject
required
string
html
string
body_text
string
Example generated
{ "name": "example", "subject": "example", "html": "example", "body_text": "example"}Responses
Sección titulada « Responses »Plantilla creada
Media type application/json
object
id
string
name
string
subject
string
html
string
body_text
string
key_id
string
created_at
string
updated_at
string
Example
{ "id": "bienvenida-fc9674", "subject": "Bienvenido {{name}}"}Campos requeridos faltantes
No autorizado