48 lines
946 B
Plaintext
48 lines
946 B
Plaintext
---
|
|
title: Campaigns vs Workflows
|
|
description: Choose the right sending method
|
|
icon: GitCompare
|
|
---
|
|
|
|
## Quick comparison
|
|
|
|
| Need | Use |
|
|
|------|-----|
|
|
| Password reset now | **API** `/v1/send` |
|
|
| Monthly newsletter | **Campaign** |
|
|
| Welcome series over 3 days | **Workflow** |
|
|
| Order confirmation | **API** `/v1/send` |
|
|
| Abandoned cart recovery | **Workflow** |
|
|
|
|
## Transactional API
|
|
|
|
Immediate one-off emails from your code.
|
|
|
|
```javascript
|
|
await fetch('/v1/send', {
|
|
method: 'POST',
|
|
body: JSON.stringify({
|
|
to: user.email,
|
|
subject: 'Reset your password',
|
|
body: `Click here: ${resetLink}`
|
|
})
|
|
});
|
|
```
|
|
|
|
## Campaigns
|
|
|
|
One-time broadcasts to many contacts. Created in dashboard.
|
|
|
|
- Send now or schedule
|
|
- Target all contacts, segments, or filters
|
|
- No code required
|
|
|
|
## Workflows
|
|
|
|
Automated multi-email sequences.
|
|
|
|
- Triggered by events or segment changes
|
|
- Delays between emails
|
|
- Conditional logic (if/then)
|
|
- Re-entry control
|