REST API
The Nitrosend REST API works with any HTTP client. Use it to integrate email marketing into your app, connect to automation platforms like Zapier or n8n, or build custom tools in any programming language.Base URL
/v1/my and scoped to your account.
Authentication
Every request requires a Bearer token in theAuthorization header:
Quick examples
Send an email
List campaigns
Create a contact
Get account status
Language examples
Python
JavaScript / Node.js
Ruby
Endpoint reference
| Action | Method | Endpoint |
|---|---|---|
| Messages | ||
| Send a message | POST | /messages |
| List messages | GET | /messages |
| Campaigns | ||
| List campaigns | GET | /campaigns |
| Create campaign | POST | /campaigns |
| Get campaign | GET | /campaigns/{id} |
| Update campaign | PATCH | /campaigns/{id} |
| Send campaign | POST | /campaigns/{id}/send |
| Contacts | ||
| List contacts | GET | /contacts |
| Create contact | POST | /contacts |
| Search contacts | GET | /contacts/search?q=... |
| Lists | ||
| List contact lists | GET | /lists |
| Create list | POST | /lists |
| Templates | ||
| List templates | GET | /templates |
| Create template | POST | /templates |
| Get template | GET | /templates/{id} |
| Update template | PATCH | /templates/{id} |
| Send test email | POST | /templates/{id}/send_test |
| Flows | ||
| List flows | GET | /flows |
| Create flow | POST | /flows |
| Segments | ||
| List segments | GET | /segments |
| Account | ||
| Get account info | GET | /account |
Pagination
List endpoints return paginated results. Pagination headers are included in the response:| Header | Description |
|---|---|
X-Total-Count | Total number of records |
X-Total-Pages | Total number of pages |
X-Page-Number | Current page number |
?page=2&per_page=25 query parameters to navigate pages.
Error handling
Errors return JSON with a consistent structure:| Status code | Meaning |
|---|---|
200 | Success |
201 | Created |
401 | Invalid or missing API key |
404 | Resource not found |
422 | Validation error |
429 | Rate limited |