API Reference
The Sequenzy API lets you programmatically manage subscribers, send emails, trigger events, and integrate email marketing into your application.Base URL
All API requests are made to:Authentication
All endpoints require an API key in theAuthorization header:
Authentication Guide
Learn more about API authentication
Response Format
All responses return JSON with a consistent structure.Success Response
Error Response
HTTP Status Codes
| Status | Description |
|---|---|
200 | Success |
400 | Bad request (validation error, missing fields, disabled resource) |
401 | Unauthorized (invalid or missing API key) |
404 | Resource not found |
409 | Conflict (resource already exists) |
500 | Internal server error |
Available Endpoints
Subscribers
Manage your subscriber list.| Method | Endpoint | Description |
|---|---|---|
POST | /subscribers | Create subscriber |
GET | /subscribers | List subscribers |
GET | /subscribers/:email | Get subscriber |
PATCH | /subscribers/:email | Update subscriber |
DELETE | /subscribers/:email | Delete subscriber |
Tags
Segment subscribers with tags.| Method | Endpoint | Description |
|---|---|---|
POST | /subscribers/tags | Add tag to subscriber |
POST | /subscribers/tags/bulk | Add multiple tags |
Events
Track subscriber actions and trigger automations.| Method | Endpoint | Description |
|---|---|---|
POST | /subscribers/events | Trigger event |
POST | /subscribers/events/bulk | Trigger multiple events |
Transactional Emails
Send programmatic emails.| Method | Endpoint | Description |
|---|---|---|
POST | /transactional/send | Send email |
GET | /transactional | List templates |
GET | /transactional/:slug | Get template details |
Auto-Creation Behavior
The API automatically creates resources when they don’t exist:| Resource | When Created |
|---|---|
| Subscribers | When adding tags, triggering events, or sending transactional emails to a new email |
| Tags | When adding a tag that doesn’t exist |
| Events | When triggering an event type that doesn’t exist |
Example
Rate Limiting
The API is rate limited to protect service stability:- Standard limit: 100 requests per minute per API key
- Burst limit: 20 requests per second
429 Too Many Requests response with a Retry-After header.
Pagination
List endpoints support pagination:| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
limit | integer | 20 | Items per page (max 100) |
Example
Response
Error Handling
Common Error Codes
| Error | Description | Solution |
|---|---|---|
Unauthorized | Invalid or missing API key | Check your API key |
Subscriber not found | Email doesn’t exist | Create the subscriber first |
Template not found | Invalid template slug | Check the slug spelling |
Template disabled | Template is deactivated | Enable in dashboard |
Validation error | Missing or invalid fields | Check request body |
Example Error Response
SDK & Libraries
JavaScript / TypeScript
Python
cURL
Need Help?
- Email: [email protected]
- Twitter: @nikpolale