← Back to blog

Waitlist Confirmation Email API (2026): Tell a Visitor They Are on the Waitlist with POST /emails

After your landing page or AI-built app already records a waitlist signup, email the visitor a confirmation and a status link with Rovela POST /emails. This is not a welcome email and not a Webflow form receipt. Rovela does not manage the waitlist.

Updated November 12, 2026
Waitlist Confirmation Email API (2026): Tell a Visitor They Are on the Waitlist with POST /emails

A waitlist confirmation is not a welcome email, a Webflow form receipt, or an 'you are in' launch mail

When an AI-built landing page or a soon-to-launch app already recorded a waitlist signup — a row with the visitor’s address, a position or referral code you minted, and a status URL — that server still has to tell the visitor: “You are on the waitlist,” plus the status URL you already have. That send is transactional email. It is not a launch newsletter, and it is not a rewrite of the welcome email playbook, the Webflow form-submission confirmation, or a generic transactional email API overview. Those tutorials already exist. A welcome email assumes the product is already usable. A Webflow form receipt confirms that a form was stored, and it is tied to that builder. This article is the moment after a waitlist write: the product may not be open yet, the person is not a full user, and you are only confirming their spot. Rovela does not manage waitlists, assign places in line, or open the product — this is your own waitlist-confirmation event, sent through POST /emails. The recipient is the visitor you just stored. The call to action is “view your spot,” not “welcome in,” and not “confirm this form submission.”

When you later admit the person, that is a second event (“you’re in”) with a new Idempotency-Key, and optionally a documented scheduled_at if you already know the admit time. Do not reuse this confirmation as the launch message. Send from a domain you verified, with DKIM. There is no official SDK to install; a server-side HTTP call is enough. Keep the key out of the landing-page JavaScript that an AI website builder may have generated.

A signup server records a waitlist row and a status URL, then posts JSON with that URL to the email API and receives a message id

What you need before the first waitlist confirmation

The first-email guide and the Quick Start are the same five steps, whether you call curl or a server-side fetch from the server that already stored the waitlist signup:

  1. Create an account. The free plan sends real mail. There is no separate sandbox, and no test key that behaves differently from production.
  2. Add and verify a sending domain (often a subdomain such as mail.example.com). An unverified or foreign from is refused with a 400 that names the domain. The dashboard asks for four DNS records — SPF, DKIM, DMARC, and return-path. See the domain setup guide, the Domains API, and what an email domain is.
  3. Create an API key. A sending_access key can send and nothing else — the right default for a production waitlist confirmation sender. A full_access key can also read messages and events, and manage domains, templates, and webhooks. The full key is shown once. Keys look like re_… and go out as a bearer token (authentication, email API authentication).
  4. Send with POST /emails.
  5. Confirm delivery in the dashboard, with GET /emails/:id or GET /emails/:id/events (those reads need full_access or a dashboard session), or with a webhook.

from is a string in the documented form "Acme <hello@mail.example.com>". The address must sit on a verified sending domain. You prove you control the domain — that is what makes domain email trustworthy — before you speak as it. See the From name guide, the sending domains API, how email authentication works, how to set up domain email, and sending subdomain setup.

At least one of html, text, or template is required. template is a documented { id, variables } object and is mutually exclusive with html and text. Send both html and text where you can (HTML email API). Reusable copy can move to a template later; follow the templates guide. Examples here keep the copy inline.

Programmatic volume belongs on the HTTP email API, not on mailbox SMTP. Rovela SMTP is mailbox mail for Outlook, Apple Mail, or a phone: host mx.rovela.dev, port 465 with SSL/TLS, the mailbox’s full address, and a device credential (the same one that device uses for IMAP). A mailbox can send only as itself. For this waitlist confirmation, start with email API vs SMTP.

A signup path that sends only after the waitlist row and status URL already exist

The waitlist form may live on Lovable, v0, Framer, Webflow, or a static page. The send belongs on the server that already inserted the row: a route handler, an edge function, or a form receiver. The browser posts the email address to that server and stops.

Do the product work first, then the send. Insert the waitlist record (email, optional name, referral code, position if you show one), mint a status URL such as https://www.example.com/waitlist/status?token=…, and only then call the Send Email API. If the insert is a duplicate of an address already on the list, do not send a second confirmation with a new key unless you intentionally re-issue the status link; prefer returning the existing token and the same Idempotency-Key.

// Server that stored the waitlist row — never the landing-page script.
const statusUrl = `https://www.example.com/waitlist/status?token=${plainToken}`;

const res = await fetch("https://api.rovela.dev/emails", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROVELA_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": `waitlist-confirm-${signupId}-v1`,
  },
  body: JSON.stringify({
    from: "Acme <hello@mail.example.com>",
    to: signup.email,
    subject: "You are on the Acme waitlist",
    html:
      `<p>You are on the Acme waitlist. We will email you when your spot opens.</p>` +
      `<p><a href="${statusUrl}">View your spot</a></p>`,
    text:
      `You are on the Acme waitlist. We will email you when your spot opens.\n` +
      `View your spot: ${statusUrl}`,
    tags: { type: "waitlist-confirmation" },
  }),
});

if (!res.ok) {
  const err = await res.json().catch(() => ({}));
  throw new Error(`rovela ${res.status}: ${err.message || res.statusText}`);
}

const { id } = await res.json();

Use a sending_access key. When you later admit the visitor, send a separate “you’re in” message (new key). If many admits go out at once, documented POST /emails/batch can carry up to 100 different bodies in one request. That is not this confirmation.

Idempotency, recipients, and what a 200 actually means

Retries are normal. A server action, edge function, workflow, or queued job can time out after Rovela has already accepted the message. Send the documented Idempotency-Key header so a retry does not create a second waitlist confirmation. A stable key such as waitlist-confirm-signup_904-v1 is unique to this event, this recipient, and this token or invite version, and it stays the same when the HTTP call is repeated.

to accepts a string or an array. cc and bcc count toward billing and toward the documented cap of 50 recipients on one message. For a waitlist confirmation, use a single to: the visitor whose address you already stored on the waitlist. If you need an owner copy, send a second, separately idempotent message instead of BCC-ing a shared inbox.

A 200 from POST /emails means accepted for delivery, not arrived. The body looks like {"object": "email", "id": "9f1c2e40-..."}. Delivery is asynchronous. Read state with GET /emails/:id or GET /emails/:id/events (those need full_access or a dashboard session). In production, subscribe to a webhook for email.sent, email.delivered, email.bounced, and related events instead of polling from the request that minted the waitlist confirmation.

If the address is on the suppression list, the send can still return an id, but the message is not delivered and its status becomes suppressed. Check Suppressions in the dashboard before assuming the API failed. Rate limits are per key; a 429 means retry with backoff. Each message in a POST /emails/batch request counts individually.

Optional documented fields include reply_to, scheduled_at (an ISO 8601 timestamp in the future), tags, headers, and attachments as { filename, content (base64), content_type }. This waitlist confirmation does not need an attachment. To queue a later follow-up, use scheduled_at — not a sleep in the request path. A batch is appropriate only when you truly have many different messages, up to 100 per request.

Errors you should handle in the waitlist signup server path

Documented errors share one shape: statusCode, name, and message. Handle them once in the waitlist signup server path.

  • 400 — a missing required field, a from domain that is not in your organization or is still unverified, a template that does not exist, a base64 attachment that does not decode, or more than 50 recipients on one message. Read message; it often names the domain or the missing field. Do not retry a 400 in a tight loop.
  • 401 — missing or invalid credential, or a missing Bearer prefix. A revoked key looks the same from the client’s point of view.
  • 403 — a valid sending_access key used on a management or read endpoint such as GET /emails/:id or GET /domains. The message says which permission is required. Keep the send path on sending_access; use full_access or the dashboard for status reads.
  • 429 — the per-key rate limit. Retry with backoff. Do not fan out a burst of waitlist confirmation sends from an unqueued loop.

A leaked sending_access key can send mail as your domain. Keep ROVELA_API_KEY in the server or edge-function environment, never in the browser, a mobile client, a public page, or a chat transcript (email API authentication). There is no official client SDK to install; a standard HTTPS call is enough.

Delivery is asynchronous — do not poll from the waitlist signup server path

After waitlist confirmation is accepted, delivery continues in the background. The waitlist signup server path should store the returned message id next to your own event record and return to the user. Watching the message from that same request with a tight GET /emails/:id loop will slow the sign-up, invite, or form path and still needs full_access.

For production, configure a webhook and follow the webhook overview. Typical events include email.sent, email.delivered, email.opened, email.clicked, and email.bounced (event reference). Use bounces to keep your own list clean; do not invent a /logs API — the documented reads are GET /emails/:id, GET /emails/:id/events, the dashboard Emails view, and webhooks.

If a waitlist confirmation landed in spam, start with DNS rather than the HTTP call: confirm the DKIM record is published at the selector the dashboard gave you, that you have exactly one SPF record, and that DMARC is not p=reject on a brand-new domain with no sending history. Reputation takes weeks, not minutes (how email authentication works).

A visitor at a kitchen table opens a single transactional email titled You are on the waitlist with one large View your spot button, not a welcome tour

What not to do in this waitlist confirmation

Do not ship the Rovela key in the landing-page script an AI builder generated. Do not send waitlist confirmations through mailbox SMTP. Use the HTTP API.

Do not call this message a welcome email, and do not attach a marketing drip (transactional vs marketing). Do not reuse the confirmation Idempotency-Key for the later “you’re in” mail. Do not invent a sandbox key. Do not poll GET /emails/:id from the signup request.

Rovela will not keep the queue in order. Your waitlist table does that.

A compact waitlist-confirmation checklist

  • Verify a sending domain and create a sending_access key (Quick Start).
  • Insert the waitlist row and mint the status URL first.
  • Call POST /emails from the signup server with Idempotency-Key, html, and text.
  • Keep the key off the landing page.
  • Use webhooks for bounces; a 200 only means accepted.
  • Send “you’re in” later as a second idempotent event.