Email campaigns API

Connect Gmail once in the dashboard (GET /api/email/gmail/status/ shows the state).

Contacts

Bulk: POST /api/email/contact-lists/{id}/upload-csv/ (multipart file).

Campaigns

- POST /api/email/campaigns/aidraft/ — draft the body from a prompt - POST …/{id}/testsend/ — send yourself a test - POST …/{id}/send/ — send to the list (or set scheduledat) - GET …/{id}/report/ — sent / opened / clicked per recipient

Merge tags (in htmlbody): {{firstname}}, {{lastname}}, {{email}}, {{company}} and your customfields. Unsubscribes, bounces and complaints are suppressed automatically. Each email costs tokencostperemail tokens.

Templates: /api/email/templates/.