← Back to blog

Email API Authentication (2026): Bearer Keys, sending_access, and Rotation on Rovela

How to authenticate to Rovela’s Email API: Bearer re_ keys, sending_access vs full_access, domain-restricted keys, 401 vs 403, and why this is not DKIM.

Updated November 10, 2026
Email API Authentication (2026): Bearer Keys, sending_access, and Rotation on Rovela

Email API authentication is not DKIM

Email API authentication is how your program proves it may call https://api.rovela.dev. That is a Bearer API key, or, for a person in the dashboard, a session token. It is a different topic from email authentication — SPF, DKIM, and DMARC on the message itself — which is covered in How Email Authentication Works and Verified Domain Email API.

Rovela’s Authentication page is the source for what follows: two kinds of credential, two key permissions, optional restriction to a single domain, and how revocation works. This article is the sending-oriented reading of that page, not a rewrite of DNS setup.

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

Related product guides in this series:

API keys for programs, sessions for people

An API key identifies a program. Keys look like re_… and go in a single header:

Authorization: Bearer re_your_api_key

Create keys in the dashboard under API Keys, or with POST /api-keys. The full key is returned once, at creation, and is not recoverable afterwards — the server keeps only what it needs to verify a key. If you lose one, revoke it and create another.

A session token identifies a person using the dashboard. It is a JWT from POST /auth/login or POST /auth/register, sent the same way. Roles are owner, admin, and member. Endpoints that act on a person rather than an organization (changing a password, managing team members, exporting or deleting the account) take a session and refuse an API key on purpose.

Most sending and domain endpoints take either a session or the right kind of API key. The dashboard API Keys section is where you create and revoke keys day to day.

sending_access vs full_access

  • sending_access — may send email, and nothing else. The right choice for a production sending key, and the default.
  • full_access — everything the API offers: sending, reading messages and their events, the request logs, and managing domains, templates, contacts, webhooks, segments, and the rest.

Consequences that show up in real code:

  • POST /emails and POST /emails/batch work with a sending key.
  • GET /emails/:id, GET /emails/:id/events, reschedule, and cancel need full_access (or a session). The Emails API returns 401 when a sending key is used to read, reschedule, or cancel (Send Email API).
  • Other management calls such as GET /domains refuse a sending key with 403 and say which permission they need (Send your first email).
  • Registering webhooks is documented as taking a full_access key or session (Webhooks overview).

Keep full_access off the hot send path. A support tool or a scheduled inspector can hold it; the worker that only sends receipts should not.

Restrict a key to one domain

A key can also be restricted to a single domain. If you send on behalf of several customers from one organization, one key per domain means a leaked key cannot be used to send as anybody else (Email API for Multi-Tenant SaaS). This is an API-credential control; it does not replace verifying each sending domain.

Rotate, revoke, and fail clearly

Revoke with DELETE /api-keys/:id or from the dashboard. Revocation takes effect immediately — the next request with that key is refused. Rotating is create-then-revoke, so there is a window where both keys work and you can deploy without downtime.

When it goes wrong, the distinction matters:

  • 401 — no credential, or one that is not valid (revoked, mistyped, or the wrong kind for this endpoint).
  • 403 — the credential is valid but the role does not permit the action (for example a member doing something reserved for owner or admin).

Never put an API key in client-side code, a mobile app, or a public repository. Call the API from your server (Send Email Programmatically, Email API Integration).

There is no separate sandbox or test key. A free-plan key sends real mail (Quick Start, Email API for Startups).

A minimal sending example

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 from domain still has to be verified — authentication of the request does not waive authentication of the message. See Verified Domain Email API.

FAQ

Can I inspect a key after I close the create dialog? No. Store it at creation. If it is gone, revoke and create a new one.

Is a JWT session a good way to send mail from an app? No. Sessions identify people in the dashboard. Programs should use an API key, preferably sending_access.

Does full_access include the dashboard Logs view? full_access includes reading messages, events, and “the request logs” via the API’s overall permission set. The dashboard Logs section is the documented UI for API calls, webhook deliveries, and background jobs (Email API Logs). This article does not invent a /logs REST resource the docs do not describe.

Give each program the smallest key that works

One sending_access key per application environment, optionally locked to one domain, stored only in server secrets, rotated by creating the new key first. That is Email API authentication as a practice, and it is what keeps a leaked worker secret from also becoming a domain-admin secret.