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

MethodPathDescription
POST/emailsSend an email.
POST/emails/batchSend up to 100 emails.
GET/emailsList emails.
GET/emails/:idRetrieve an email with its events.
PATCH/emails/:idReschedule a scheduled email.
POST/emails/:id/cancelCancel a scheduled email.

Domains

MethodPathDescription
POST/domainsAdd a domain.
GET/domainsList domains.
GET/domains/:idRetrieve a domain and its DNS records.
PATCH/domains/:idUpdate tracking and receiving settings.
POST/domains/:id/verifyCheck the DNS records now.
DELETE/domains/:idDelete a domain.

API keys

MethodPathDescription
POST/api-keysCreate a key. The token is returned once.
GET/api-keysList keys.
DELETE/api-keys/:idRevoke a key.

Audiences and contacts

MethodPathDescription
POST, GET/audiencesCreate or list audiences.
GET, PATCH, DELETE/audiences/:idRetrieve, update or delete an audience.
POST, GET/audiences/:id/contactsAdd or list contacts.
PATCH, DELETE/audiences/:id/contacts/:contactIdUpdate or remove a contact.

Broadcasts and templates

MethodPathDescription
POST, GET/broadcastsCreate a draft or list broadcasts.
PATCH, DELETE/broadcasts/:idEdit or delete a draft.
POST/broadcasts/:id/sendSend now or with scheduled_at.
POST, GET/templatesCreate or list templates.
PATCH, DELETE/templates/:idUpdate or delete a template.

Webhooks and suppressions

MethodPathDescription
POST, GET/webhooksCreate or list webhook endpoints.
PATCH, DELETE/webhooks/:idUpdate or delete an endpoint.
GET, POST/suppressionsList or add suppressed addresses.
DELETE/suppressions/:idRemove a suppressed address.

Inbound

MethodPathDescription
GET/inbound/emailsList received emails. Filter by route, thread or date.
GET/inbound/emails/:idRetrieve a received email.
GET/inbound/emails/:id/rawSigned link to the original message.
GET/inbound/emails/:id/attachments/:attachmentIdSigned link to an attachment.
DELETE/inbound/emails/:idDelete a received email and its files.
POST, GET/inbound/routesCreate or list routes.
PATCH, DELETE/inbound/routes/:idUpdate or delete a route.