Ir al contenido

Crear plantilla

POST
/v1/bulk/templates
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" }'
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"
}

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