Reference
API reference
Every endpoint at a glance.
All endpoints use the base URL https://api.nusend.dev and require a bearer API key. Request and response bodies are JSON.
Emails
| Method | Path | Description |
|---|---|---|
| POST | /emails | Send an email. |
| POST | /emails/batch | Send up to 100 emails. |
| GET | /emails | List emails. |
| GET | /emails/:id | Retrieve an email with its events. |
| PATCH | /emails/:id | Reschedule a scheduled email. |
| POST | /emails/:id/cancel | Cancel a scheduled email. |
Domains
| Method | Path | Description |
|---|---|---|
| POST | /domains | Add a domain. |
| GET | /domains | List domains. |
| GET | /domains/:id | Retrieve a domain and its DNS records. |
| PATCH | /domains/:id | Update tracking and receiving settings. |
| POST | /domains/:id/verify | Check the DNS records now. |
| DELETE | /domains/:id | Delete a domain. |
API keys
| Method | Path | Description |
|---|---|---|
| POST | /api-keys | Create a key. The token is returned once. |
| GET | /api-keys | List keys. |
| DELETE | /api-keys/:id | Revoke a key. |
Audiences and contacts
| Method | Path | Description |
|---|---|---|
| POST, GET | /audiences | Create or list audiences. |
| GET, PATCH, DELETE | /audiences/:id | Retrieve, update or delete an audience. |
| POST, GET | /audiences/:id/contacts | Add or list contacts. |
| PATCH, DELETE | /audiences/:id/contacts/:contactId | Update or remove a contact. |
Broadcasts and templates
| Method | Path | Description |
|---|---|---|
| POST, GET | /broadcasts | Create a draft or list broadcasts. |
| PATCH, DELETE | /broadcasts/:id | Edit or delete a draft. |
| POST | /broadcasts/:id/send | Send now or with scheduled_at. |
| POST, GET | /templates | Create or list templates. |
| PATCH, DELETE | /templates/:id | Update or delete a template. |
Webhooks and suppressions
| Method | Path | Description |
|---|---|---|
| POST, GET | /webhooks | Create or list webhook endpoints. |
| PATCH, DELETE | /webhooks/:id | Update or delete an endpoint. |
| GET, POST | /suppressions | List or add suppressed addresses. |
| DELETE | /suppressions/:id | Remove a suppressed address. |
Inbound
| Method | Path | Description |
|---|---|---|
| GET | /inbound/emails | List received emails. Filter by route, thread or date. |
| GET | /inbound/emails/:id | Retrieve a received email. |
| GET | /inbound/emails/:id/raw | Signed link to the original message. |
| GET | /inbound/emails/:id/attachments/:attachmentId | Signed link to an attachment. |
| DELETE | /inbound/emails/:id | Delete a received email and its files. |
| POST, GET | /inbound/routes | Create or list routes. |
| PATCH, DELETE | /inbound/routes/:id | Update or delete a route. |