Agregar step a la secuencia
POST
/v1/bulk/sequences/{id}/steps
const url = 'https://api.mailerdash.com/v1/bulk/sequences/example/steps';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"position":1,"offset_seconds":1,"subject":"example","preheader":"example","mjml":"example","html":"example","body_text":"example","from_email":"example","from_name":"example","reply_to":"example","template_id":"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/sequences/example/steps \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "position": 1, "offset_seconds": 1, "subject": "example", "preheader": "example", "mjml": "example", "html": "example", "body_text": "example", "from_email": "example", "from_name": "example", "reply_to": "example", "template_id": "example" }'Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Path Parameters
Sección titulada «Path Parameters » id
required
string
Request Body required
Sección titulada «Request Body required » Media type application/json
object
position
required
integer
offset_seconds
required
integer
subject
string
preheader
Texto de vista previa en la bandeja
string
mjml
Fuente MJML del diseño. Si se manda, el HTML se DERIVA compilando en el servidor.
string
html
string
body_text
string
from_email
string
from_name
string
reply_to
string
template_id
string
Example generated
{ "position": 1, "offset_seconds": 1, "subject": "example", "preheader": "example", "mjml": "example", "html": "example", "body_text": "example", "from_email": "example", "from_name": "example", "reply_to": "example", "template_id": "example"}Responses
Sección titulada « Responses »Creado
Media type application/json
object
id
integer
sequence_id
string
position
integer
offset_seconds
integer
subject
string
preheader
Texto de vista previa en la bandeja
string
mjml
Fuente MJML del diseño; el html es lo que se envía
string
html
string
body_text
string
from_email
string
from_name
string
reply_to
string
template_id
string
Example generated
{ "id": 1, "sequence_id": "example", "position": 1, "offset_seconds": 1, "subject": "example", "preheader": "example", "mjml": "example", "html": "example", "body_text": "example", "from_email": "example", "from_name": "example", "reply_to": "example", "template_id": "example"}Validacion
Dominio del from_email no autorizado
Secuencia no encontrada