REST API

Build on the
NexusProMail API

Send transactional emails, manage contacts, automate campaigns and track analytics — all via a simple REST API.

Get API Key FreeView Documentation
99.9%
Uptime SLA
<100ms
Avg Response Time
REST
API Standard
Free
Sandbox Mode

API Reference

All endpoints require your API key in the Authorization header.

Authentication
Authorization: Bearer YOUR_API_KEY
Email
POST/v1/api/sendSend a transactional email
Contacts
GET/v1/api/contactsList all contacts
POST/v1/api/contactsCreate a contact
PATCH/v1/api/contacts/:emailUpdate a contact
DELETE/v1/api/contacts/:emailDelete a contact
Campaigns
GET/v1/api/campaignsList all campaigns
POST/v1/api/campaignsCreate a campaign
POST/v1/api/campaigns/sendSend a campaign
PATCH/v1/api/campaigns/:idUpdate a campaign
DELETE/v1/api/campaigns/:idDelete a campaign
Templates
GET/v1/api/templatesList all templates
POST/v1/api/templatesCreate a template
PATCH/v1/api/templates/:idUpdate a template
DELETE/v1/api/templates/:idDelete a template
Analytics
GET/v1/api/analyticsGet analytics overview
GET/v1/api/usageGet API usage stats
Webhooks
GET/v1/api/webhooksList webhooks
POST/v1/api/webhooksRegister a webhook
DELETE/v1/api/webhooks/:idDelete a webhook

Code Examples

Get started in minutes with your favourite language.

Node.js
const NexusProMail = require('nexuspromail')
const client = new NexusProMail('YOUR_API_KEY')

await client.send({
  to: 'customer@example.com',
  subject: 'Welcome!',
  html: '<h1>Hello World</h1>'
})
Python
import requests

headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
}
data = {
  'to': 'customer@example.com',
  'subject': 'Welcome!',
  'html': '<h1>Hello World</h1>'
}
r = requests.post(
  'https://app.nexuspromail.com/v1/api/send',
  json=data, headers=headers
)
PHP
$client = new GuzzleHttp\Client();
$response = $client->post(
  'https://app.nexuspromail.com/v1/api/send',
  [
    'headers' => [
      'Authorization' => 'Bearer YOUR_API_KEY',
      'Content-Type' => 'application/json'
    ],
    'json' => [
      'to' => 'customer@example.com',
      'subject' => 'Welcome!',
      'html' => '<h1>Hello World</h1>'
    ]
  ]
);
cURL
curl -X POST \
  https://app.nexuspromail.com/v1/api/send \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "to": "customer@example.com",
    "subject": "Welcome!",
    "html": "<h1>Hello World</h1>"
  }'

Ready to build?

Get your free API key and start sending in minutes.

Get Started Free