Send email from your website
Verify a sending domain and sender mailbox, then generate a domain email API token in Email → Domains → Manage. Keep the token on your server, never in browser JavaScript.
Send a message
POST https://resalahub.com/v1/email/messages
Authorization: Bearer YOUR_DOMAIN_EMAIL_TOKEN
Content-Type: application/json
{
"requestId": "GENERATE_A_NEW_UUID_FOR_EACH_SEND",
"from": "verified@your-domain.com",
"recipients": "consenting-recipient@example.com",
"subject": "Your requested update",
"text": "Hello from our website.",
"consent": true
}Use your own verified address and an opted-in recipient. The token is restricted to its assigned domain. Existing workspace SMS/WhatsApp API keys cannot use this endpoint.
Keep the same request ID if checking an uncertain submission. A duplicate returns HTTP 409; inspect history before creating another request. A successful response includes message IDs and accepted, suppressed and unknown counts. Acceptance is not delivery.
Check delivery
GET https://resalahub.com/v1/email/messages/MESSAGE_ID
Authorization: Bearer YOUR_DOMAIN_EMAIL_TOKENThe response includes recorded delivery events when Postal reporting is available. Up to 20 recipients are accepted per request on campaign-enabled packages. Monthly email allowances, verified senders, suppressions, workspace IP rules and account security policies apply.