API key
Send it as a Bearer token from your backend.
RuangMail Email API
Connect your backend to send OTPs, invoices, and notifications. Set up a domain and sender, then monitor delivery status from the dashboard.

A real request
This example uses the same endpoint, headers, and payload as the integration guide.
curl -X POST https://api.ruangmail.com/api/v1/email-api/messages \
-H "Authorization: Bearer rmk_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: invoice-202610-000482" \
-d '{
"from": "[email protected]",
"from_name": "Brand Anda",
"reply_to": "[email protected]",
"to": [{"email": "[email protected]", "name": "Customer"}],
"subject": "Invoice INV-202610-000482",
"html": "<p>Terima kasih, pembayaran Anda sudah kami terima.</p>",
"metadata": {"invoice_id": "INV-202610-000482"}
}'Before your first request
Set up these three items in your dashboard.
Send it as a Bearer token from your backend.
Use a sender address on a verified domain.
Credits are based on unique recipients and final MIME size.