← Back to blog

REST Email API (2026): JSON Resources for Send, Status, and Cancel on Rovela

How Rovela’s REST email API models a message: POST /emails, POST /emails/batch, GET /emails/:id and /events, cancel, and PATCH before send — JSON in, JSON out.

Updated November 10, 2026
REST Email API (2026): JSON Resources for Send, Status, and Cancel on Rovela

What a REST email API is

A REST email API treats a message as a resource you create, read, and (while it is still waiting) cancel or reschedule — over HTTPS, with JSON in and JSON out. You do not open an SMTP socket, talk MIME by hand, or install a vendor SDK. Rovela’s Email API is that shape: the base URL is https://api.rovela.dev, you authenticate with a Bearer API key, and the email resources live under /emails.

This is the resource-model guide. HTTP Email API is about the HTTPS transport itself; Email Sending API is the production head-term; A Simple Transactional Email API is “plain HTTP, no mail servers.” If you are still choosing a transport, start with Email API vs SMTP.

Start from the Email API product page, the Quick Start, the Send Email API, and Authentication.

Related product guides in this series:

The email resources

The Send Email API documents these operations:

MethodPathWho can call itWhat it does
POST/emailsAPI key or sessionQueue one transactional message
POST/emails/batchAPI key or sessionQueue up to 100 messages in one request
GET/emails/:idfull_access key or sessionCurrent state of a message
GET/emails/:id/eventsfull_access key or sessionTimeline for that message
POST/emails/:id/cancelfull_access key or sessionCancel a message that has not been sent yet
PATCH/emails/:idfull_access key or sessionReschedule (or cancel) before send time, as documented in the sending manual

A sending_access key may send, and nothing else. Using it to read, reschedule, or cancel comes back 401 on the Emails API. Other management endpoints such as GET /domains refuse a sending key with 403 and name the permission they need (Authentication, Email API Authentication).

Create: POST /emails

The body is a JSON object. Required fields are from, to, and (unless a template supplies them) subject, plus at least one of html, text, or template. Send both HTML and plain text when you can — many clients show the text part in a notification preview (HTML Email API).

curl -X POST https://api.rovela.dev/emails \
  -H "Authorization: Bearer re_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <hello@yourdomain.com>",
    "to": "you@example.com",
    "subject": "Hello from Rovela",
    "html": "<p>It worked.</p>",
    "text": "It worked."
  }'

The response is a small JSON object, not a MIME envelope:

{"object": "email", "id": "9f1c2e40-..."}

That id is the handle for every later GET, cancel, or webhook you correlate. A 200 means accepted and queued, not delivered (Quick Start).

Useful optional fields, all documented on the same page: cc / bcc (they count toward the 50-recipient cap and toward quota), reply_to, scheduled_at (a future ISO 8601 timestamp; the sending manual also requires it to be at least five minutes ahead), tags, headers, topic_id, and attachments as { filename, content (base64), content_type }. template is { id, variables } and is mutually exclusive with html and text.

Put an Idempotency-Key header (up to 256 characters) on anything a queue or webhook might retry (Idempotency Keys for Email APIs, Email API Retries).

Create many: POST /emails/batch

The body is a JSON array of up to 100 objects, each with the same schema as a single send. Entries are processed independently, so one bad message does not discard the others; the response lists an id per entry, in order. Two fields are rejected rather than ignored: template and topic_id. Send those through POST /emails. Each item in a batch counts individually toward rate limits (Batch Transactional Email API, Email API Rate Limits).

curl -X POST https://api.rovela.dev/emails/batch \
  -H "Authorization: Bearer re_your_sending_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: reminders-2026-11-10" \
  -d '[
    {
      "from": "Acme <reminders@mail.acme.com>",
      "to": "alice@example.com",
      "subject": "Your trial ends in 3 days",
      "html": "<p>Hi Alice, your trial ends on Nov 13.</p>",
      "text": "Hi Alice, your trial ends on Nov 13."
    },
    {
      "from": "Acme <reminders@mail.acme.com>",
      "to": "bob@example.com",
      "subject": "Your trial ends in 3 days",
      "html": "<p>Hi Bob, your trial ends on Nov 13.</p>",
      "text": "Hi Bob, your trial ends on Nov 13."
    }
  ]'

Read: status and events

curl https://api.rovela.dev/emails/9f1c2e40-... \
  -H "Authorization: Bearer re_your_full_access_key"

curl https://api.rovela.dev/emails/9f1c2e40-.../events \
  -H "Authorization: Bearer re_your_full_access_key"

GET /emails/:id is the current state. GET /emails/:id/events is the timeline — accepted, delivered, opened, clicked, bounced or failed, with timestamps. Useful for debugging one message; for anything systematic, subscribe to a webhook instead of polling (Email Delivery Status API, Transactional Email Webhooks).

A send to an address on the suppression list is still accepted and returns an id, but the message is never delivered and its status becomes suppressed (Sending manual).

Cancel or reschedule

A future scheduled_at queues the message and returns immediately; the id you get back is the message’s, so you can read or cancel it before it goes out.

curl -X POST https://api.rovela.dev/emails/9f1c2e40-.../cancel \
  -H "Authorization: Bearer re_your_full_access_key"

Once the message is already on its way to the receiving server, it cannot be recalled. Cancelling and rescheduling need full_access. More background: Scheduled Email Sending.

Errors are JSON too

Every error has the same shape, so one handler covers them (Quick Start):

{
  "statusCode": 400,
  "name": "Bad Request",
  "message": "html or text body is required"
}
StatusWhat it usually means
400Missing field, bad base64 attachment, from domain not in your organization, missing template, or more than 50 recipients
401Missing or invalid credential, or a sending_access key used to read, reschedule, or cancel
429Rate limit exceeded; each batch item counts separately. Going over the monthly allowance also answers 429 with usage, and sending stops until reset or upgrade (Pricing)

Surface the message in your own logs as-is (Email API Logs).

FAQ

Is this a formal REST collection with list filters? The documented email resources are create, read-one, events, batch, cancel, and patch-before-send. Listing and filtering live in the dashboard Emails view. Do not invent a list endpoint the docs do not describe.

Do I need a special content type besides JSON? Content-Type: application/json and Authorization: Bearer re_…. That is the contract (Send Email with curl, Send Email Programmatically).

Can I use this from a browser? You can physically, but you must not. A sending_access key in client-side code is someone sending mail as your domain (Authentication).

Use the resources, not a socket

Create with POST /emails, hold the id, and either poll once while you are debugging or subscribe to webhooks in production. For wiring this into application events, see Send Transactional Email from Your App.