REST API (`/v1`) quickstart
Sync consented contacts and trigger transactional emails with scoped Bearer keys.
Available on Team, Business, and Enterprise. Create scoped keys (contacts:read, contacts:write, send, campaigns:read, emails:read) under Settings → Integrations → API keys.
Send a transactional or approved email
Command / Snippet
curl -X POST https://email.yourcompany.com/v1/send \
-H "Authorization: Bearer es_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"email_id": "em_welcome",
"to": "ana@acme.com",
"data": { "first_name": "Ana", "company": "Acme" }
}'
Upsert a consented subscriber
Command / Snippet
curl -X POST https://email.yourcompany.com/v1/contacts \
-H "Authorization: Bearer es_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"email": "ana@acme.com",
"first_name": "Ana",
"lists": ["lst_product"],
"consent": true,
"double_opt_in": true
}'
Need hands-on help? Write to our engineering team at solutions@expandware.com or request an architect session.