RuangMail Email API

Send application email through one API you can monitor.

Connect your backend to send OTPs, invoices, and notifications. Set up a domain and sender, then monitor delivery status from the dashboard.

HTTPS · JSONIdempotency-KeyDelivery activity
Illustration of an email API flow from application to inbox and delivery status

A real request

Start with a request you can try.

This example uses the same endpoint, headers, and payload as the integration guide.

Request example · cURL
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.

API key

Send it as a Bearer token from your backend.

Active domain and sender

Use a sender address on a verified domain.

Credits and activity log

Credits are based on unique recipients and final MIME size.

Tracking with clear limits

Open and click tracking is available for single-recipient HTML email. A single batch request can include up to 50 unique recipients.

Choose credits for your sending volume

Review available credit plans, then manage usage from your account.

View credit plans