Enterprise & Headless API
WazobiaMail provides a headless programmatic architecture designed for Enterprise customers who want to operate business email and inbox infrastructure entirely behind the scenes via code. Every operational capability available in the dashboard—domain provisioning, DNS inspection, mailbox creation, real-time event streaming, and direct mailbox inbox querying—can be driven programmatically via REST endpoints and WebSockets using your API keys.Enterprise Plan Required: Enterprise headless features—including direct programmatic mailbox inbox retrieval (
GET /mailboxes/{id}/messages), individual message inspection (GET /mailboxes/{id}/messages/{message_id}), message purging (DELETE /mailboxes/{id}/messages/{message_id}), and dedicated IP egress routing—strictly require an active Enterprise plan. Requests from accounts on Free, Starter, PAYG, or Business plans will receive an HTTP 403 Forbidden response.1. Authentication & Headers
Authenticate API calls using theX-API-Key header or a Bearer token in the Authorization header. Enterprise API keys can be minted with full permissions (* or app:*) to perform all customer-facing operations.
2. Domain Lifecycle & DNS Details
Headless domain setup allows your application to provision sending and receiving domains and immediately inspect the exact DNS records (SPF, DKIM, DMARC, MX) needed for verification.Step 1: Register a domain
Step 2: Fetch DNS configuration records
Retrieve the generated DNS records required for mail exchange and cryptographic authenticity:Step 3: Trigger DNS verification
Once published to your DNS provider, trigger asynchronous DNS propagation verification:3. Mailbox Provisioning
Once your domain is verified, provision inboxes for team members, automated agents, or department routing.Create a hosted mailbox
Inspect connection parameters
To obtain IMAP, SMTP, and POP3 connection endpoints for third-party client integrations:4. Programmatic Mailbox Inbox API
Enterprise Plan Required: The Mailbox Messages endpoints require an active Enterprise plan. Accounts on lower plans will receive HTTP
403 Forbidden.List inbox messages
Fetch recent messages with pagination and unread filtering:Retrieve message detail
Fetch full message content, RFC 822 headers, HTML and plain text bodies, and attachment metadata:Delete an inbox message
Purge processed messages to manage mailbox quota:5. Sending Outbound Messages
Send high-volume transactional or campaign emails through your enterprise dedicated egress pool:6. Real-Time Telemetry & WebSockets
Enterprise applications can subscribe to real-time events without polling. Connect to WazobiaMail’s Socket.IO gateways by passing your API key in the connectionauth handshake:
