REST API
Create a key in Settings → API keys. Send it as Authorization: Bearer sk_…. Bodies are JSON. Base URL is this site.
Contacts
Create or update a contact
POST /api/v1/contacts
{ "email": "asha@example.com", "first_name": "Asha", "last_name": "Rao", "phone": "+91…",
"attributes": { "city": "Pune", "birthday": "1992-04-18" },
"lists": [1], "tags": ["website"] }
Existing contacts are updated and tags merged. Unsubscribed contacts stay unsubscribed unless you send "status":"subscribed","resubscribe":true after they asked to rejoin.
Get a contact
GET /api/v1/contacts/{email}
Unsubscribe
POST /api/v1/contacts/{email}/unsubscribe
Delete
DELETE /api/v1/contacts/{email}
Lists
GET /api/v1/lists
Events
POST /api/v1/events — starts automations whose trigger is Custom event.
{ "email": "asha@example.com", "event": "purchase" }
Transactional email
POST /api/v1/send — receipts, password resets, alerts. Uses your workspace SMTP.
{ "to": "asha@example.com", "subject": "Order {{params.order}} shipped",
"html": "<p>Hi {{first_name|there}}, your order {{params.order}} is on the way.</p>",
"params": { "order": "#1001" },
"from_email": "orders@yourbrand.com", "from_name": "Your Brand" }
Use "template_id" instead of html to send a saved template. Response: {"id": 123, "status": "queued"}.
Message status
GET /api/v1/messages/{id} → status, sent_at, opened_at, clicked_at.
Abandoned carts
POST /api/v1/carts — send a shopper’s cart whenever it changes. If it isn’t completed within the workspace’s “abandoned after” time, automations with the custom event abandoned_cart start, and the contact gets {{cart_url}}, {{cart_total}}, {{cart_currency}}, {{cart_items}}. Only shoppers who are subscribers or sent "consent": true are emailed.
{ "cart_id": "c_123", "email": "asha@example.com", "url": "https://shop.com/cart/c_123",
"total": "2499", "currency": "INR", "items": ["1× Kurta"], "consent": true }
// later, when the order is placed:
{ "cart_id": "c_123", "email": "asha@example.com", "completed": true }
Add-contact webhook (no API key)
POST /hooks/contacts/{token} — the URL from Integrations. Accepts JSON or form posts from Elementor, Webflow, Zapier, Make or plain HTML forms. Email, name and phone fields are detected automatically; other fields become custom fields. Optional query: ?list=ID&tags=a,b&redirect=https://…. Include an empty hidden field _hp to filter bots.
Bounce & complaint webhook
POST /webhooks/feedback/{token} — from Settings → Sending. Accepts Amazon SES (via SNS, signature-verified), SendGrid, Brevo, Mailgun, or generic {"email": "...", "type": "bounce"|"complaint"}.
Merge tags
{{first_name}}, {{last_name}}, {{email}}, any custom attribute like {{city}}, fallbacks {{first_name|there}}, plus {{unsubscribe_url}}, {{web_version_url}}, {{company_name}}, {{company_address}}.
Signup forms
Embed: <script src="/f/{form_id}.js" async></script>. Or POST JSON / form-encoded to /f/{form_id} from your own HTML form (CORS enabled).
Errors & limits
Errors return {"error": "message"} with HTTP 400/401/402/404/429. 402 means a plan limit was reached. Contact writes are limited to 600/min, sends to 300/min per workspace.