POST /campaigns
{
"name": "Q4 founders",
"linkedinAccountIds": ["aCc123", "aCc456"],
"emailAccountIds": ["mbx_01", "mbx_02"],
"schedule": { "timezone": "Europe/Paris",
"activeHours": { "from": "09:00", "to": "18:00" } },
"sequence": { "steps": [
{ "id": "visit", "type": "visit_profile", "nextDelayHours": 24 },
{ "id": "inv", "type": "invite", "parent": "visit",
"config": { "note": "Hi {{firstName}}, ...",
"fallbackNote": "Hi there, ..." } },
{ "type": "message", "parent": "inv", "branch": "yes",
"config": { "text": "Thanks for connecting!" } },
{ "id": "mail", "type": "if_has_email",
"parent": "inv", "branch": "no" },
{ "type": "email", "parent": "mail", "branch": "yes",
"config": { "subject": "Quick question, {{firstName}}",
"fallbackSubject": "Quick question",
"text": "Hi {{firstName}}, ...",
"fallbackText": "Hi there, ..." } },
{ "id": "ph", "type": "if_has_phone",
"parent": "mail", "branch": "no" },
{ "type": "whatsapp_message", "parent": "ph", "branch": "yes",
"config": { "text": "Hi {{firstName}}, ..." } }
] }
}