Back to Docs

Marketing Automation API

Automated workflows, drip campaigns, and customer segmentation

Visual Workflows

Drag-and-drop builder

Segmentation

Advanced targeting

Scheduling

Time-based triggers

Drip Campaigns

Automated sequences

Dual-Key Authentication

X-Smsly-Key-Id: sk_live_xxx
X-SMSLY-SDK-KEY: sdk_live_xxx

Quick Start

Python
from smsly import SMSly

# === DUAL KEY SECURITY ===
client = SMSly(
    api_key="sk_live_xxx",
    sdk_key="sdk_live_xxx"
)

# Create a marketing automation workflow
workflow = client.automation.workflow_create(
    name="Welcome Series",
    triggers=[{"event": "signup", "channel": "sms"}],
    actions=[
        {"type": "send_sms", "delay": "0h", "template": "welcome"},
        {"type": "send_sms", "delay": "24h", "template": "feature_intro"},
        {"type": "send_sms", "delay": "72h", "template": "first_purchase"}
    ]
)
print(f"Workflow ID: {workflow.id}")

# Create a customer segment
segment = client.automation.segment_create(
    name="High Value Customers",
    rules=[{"field": "total_spent", "operator": ">", "value": 1000}]
)

API Endpoints

POST/v1/automation/workflowCreate workflow
POST/v1/automation/workflow/startStart workflow
POST/v1/automation/segmentCreate segment
POST/v1/automation/dripCreate drip campaign
GET/v1/automation/workflowsList workflows

Ready to automate your marketing?