Developer Documentation & SDKs
Developer-first guides for REST APIs, Node.js SDK, SMTP relay, and webhooks
Quickstart Code Sample
// 1. Install official SDK
// npm install @xend/node
import { Xend } from '@xend/node';
const xend = new Xend(process.env.XEND_API_KEY);
async function sendOrderNotification() {
const { data, error } = await xend.emails.send({
from: 'receipts@yourdomain.com',
to: ['customer@example.com'],
subject: 'Your Chowdeck Order is on the way! 🍲',
html: '<h1>Order Confirmed</h1><p>Your food is being prepared.</p>',
tags: { order_id: '4928' },
});
if (error) {
console.error('Email send failed:', error);
return;
}
console.log('Dispatched message ID:', data.id);
}5-Step Platform Setup Guide
1Generate API Key
Create a live or test API key from the API Keys dashboard. Test keys allow safe sending simulation without requiring verified DNS.
2Add & Verify Your Domain
Add your company domain (e.g. company.ng). Add the TXT SPF, DKIM, and DMARC records to your DNS provider and click "Verify".
3Send Transactional Emails
Dispatch emails using our REST endpoint /v1/emails or using the official SDK. Supports HTML, templates, idempotency, and attachments.
4Provision Business Mailboxes
Host professional inboxes (e.g. hello@company.com) with dedicated storage quotas and webmail SSO, configured with custom MX records.
Direct SMTP Relay Gateway
For legacy applications, WordPress, Laravel, and SMTP clients
SMTP Host:smtp.xendmail.africa
Supported Ports:465 (SSL) or 587 (STARTTLS)
Username:api
Password:Your XEND API Key (xend_live_...)