Bubble Transactional Email API (2026): Confirm a New User's Email from a Bubble Workflow with POST /emails
After a Bubble workflow already creates the new user and mints a confirm-email URL, send that confirmation with Rovela POST /emails via the API Connector. No official Bubble plugin. Rovela does not create Bubble users.
A Bubble signup confirmation is not Bubble's built-in mail, a Lovable signup, or a welcome tour
When a Bubble app already has a signup flow — a user record, a “Confirm email” token you minted in a backend workflow, and a confirm URL on your domain — that workflow still has to tell the new user: “Confirm your email to finish signing up,” plus the URL you already have. That send is transactional email. It is not Bubble’s native send-email action used as a newsletter, and it is not a rewrite of a Lovable signup confirmation, the welcome email playbook, or the email verification links primer. Those tutorials already exist or cover a different builder. This article is one event in a Bubble product: the user exists in your Bubble database, email_confirmed is still no, and a single-use confirm URL already exists. Rovela does not run Bubble, create Bubble users, or talk to the Bubble editor — this is your app’s own signup-confirmation event, sent through POST /emails from the API Connector. The recipient is the new user. The call to action is “confirm your email,” not “sign in with a magic link,” and not “welcome, here is a tour.”
This guide does not invent an official Bubble plugin or a Rovela Bubble SDK. There is no client library to install. Configure the API Connector on the server / backend-workflow side, store the key as a private credential, and never expose it on a page or in a client-side workflow. Send from a domain you verified, with DKIM and an Idempotency-Key.
Bubble’s built-in email is a separate path. If you need delivery on your domain, idempotent retries, and webhooks you control, the HTTP API is the documented way to do it. The confirm token is yours. Rovela only delivers the message.
What you need before the first signup email confirmation
The first-email guide and the Quick Start are the same five steps, whether you call curl or a server-side fetch from a Bubble backend workflow and API Connector call:
- Create an account. The free plan sends real mail. There is no separate sandbox, and no test key that behaves differently from production.
- Add and verify a sending domain (often a subdomain such as
mail.example.com). An unverified or foreignfromis 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. - Create an API key. A
sending_accesskey can send and nothing else — the right default for a production signup email confirmation sender. Afull_accesskey can also read messages and events, and manage domains, templates, and webhooks. The full key is shown once. Keys look likere_…and go out as a bearer token (authentication, email API authentication). - Send with
POST /emails. - Confirm delivery in the dashboard, with
GET /emails/:idorGET /emails/:id/events(those reads needfull_accessor 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 signup email confirmation, start with email API vs SMTP.
A Bubble workflow that sends only after the user and confirm URL already exist
In Bubble, use a backend workflow (not a page workflow) plus the API Connector. Create an API call: method POST, URL https://api.rovela.dev/emails, header Authorization = Bearer <private key>, header Content-Type = application/json, and header Idempotency-Key mapped from the current invite or user id. Mark the key private so it does not ship to the browser.
Do the product work first, then the send. In the same backend workflow, after “Sign the user up” (or after you create the User record), mint a random token, store a hash, build a confirm URL such as https://app.example.com/confirm-email?token=…, and only then run the API Connector call. If the user create fails, do not send.
There is no official Bubble SDK. The Connector is just the documented HTTP request. A curl equivalent of what the Connector should send:
curl -X POST https://api.rovela.dev/emails \
-H "Authorization: Bearer $ROVELA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: bubble-verify-email-user_22-v1" \
-d '{
"from": "Acme <hello@mail.example.com>",
"to": "alex@example.com",
"subject": "Confirm your email",
"html": "<p>Confirm your email to finish signing up for Acme.</p><p><a href=\"https://app.example.com/confirm-email?token=TOKEN\">Confirm email</a></p><p>This link expires in 24 hours.</p>",
"text": "Confirm your email to finish signing up for Acme:\nhttps://app.example.com/confirm-email?token=TOKEN\nThis link expires in 24 hours.",
"tags": {"type": "signup-confirmation", "source": "bubble-app"}
}'
Use a sending_access key. Map to, the confirm URL, and the idempotency key from the current User / token version so retries of the same workflow step do not create a second message. When the user opens the confirm page (a Bubble page on your domain), compare the token to your hash and set email_confirmed. Rovela does not change Bubble data. A later welcome email is a second workflow step with a new key.
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 signup email confirmation. A stable key such as bubble-verify-email-user_22-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 signup email confirmation, use a single to: the new user whose address you already stored. 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 signup email 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 signup email 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 Bubble backend workflow
Documented errors share one shape: statusCode, name, and message. Handle them once in the Bubble backend workflow.
- 400 — a missing required field, a
fromdomain 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. Readmessage; 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
Bearerprefix. A revoked key looks the same from the client’s point of view. - 403 — a valid
sending_accesskey used on a management or read endpoint such asGET /emails/:idorGET /domains. The message says which permission is required. Keep the send path onsending_access; usefull_accessor the dashboard for status reads. - 429 — the per-key rate limit. Retry with backoff. Do not fan out a burst of signup email 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 Bubble backend workflow
After signup email confirmation is accepted, delivery continues in the background. The Bubble backend workflow 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 signup email 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).
What not to do in this Bubble signup confirmation
Do not put the Rovela key in a page workflow, a public option set, or a Bubble plugin that runs in the browser. Do not send confirmations through mailbox SMTP from a “quick SMTP” plugin. Use the HTTP API via the API Connector.
Do not use Bubble’s native mail as if it were a verified-domain transactional API with webhooks you own — those are different tools. Do not invent a sandbox key or a dedicated IP. Do not poll GET /emails/:id from the signup workflow (that read needs full_access or the dashboard).
Rovela will not set email_confirmed in Bubble. Your confirm page does that after a successful click.
A compact Bubble signup-confirmation checklist
- Verify a sending domain and create a
sending_accesskey (Quick Start). - Create the user and mint the confirm URL in a backend workflow first.
- Call
POST /emailsthrough the API Connector with a private key,Idempotency-Key,html, andtext. - Keep the key off pages and out of client-side workflows.
- Use webhooks for bounces; a 200 only means accepted.
- Mark the Bubble user confirmed only after the token checks out.