# Email Bump — Full documentation > Marketing, transactional email, signup forms, automated flows and inbound mail. Workspaces share contact-based plans and usage; see Billing for current features, limits and separately priced add-ons. This file concatenates all Email Bump documentation as Markdown. Each page is also available individually at https://emailbump.com/docs/.md — see https://emailbump.com/llms.txt for the index. --- # Introduction Marketing, transactional email, and customer journeys in one platform. ## Start here Email Bump gives marketing, product, and support teams one place to create email, automate customer journeys, and understand what happens after each send. 1. [**Set up Email Bump**](/docs/quickstart) — Create an account and choose how you want to start sending. 2. [**Verify your domain**](/docs/domains) — Authenticate your sending domain and protect deliverability. 3. [**Send a campaign**](/docs/campaigns) — Choose an audience, create the email, and review the results. ## Explore the platform Use the dashboard for day-to-day work, or connect your application through the transactional API. - [**Email editor**](/docs/editor) — Write personal-looking messages or build fully designed emails. - [**Campaigns**](/docs/campaigns) — Create, target, schedule, and measure marketing sends. - [**Automated flows**](/docs/flows) — Respond to customer behavior with timed, connected actions. - [**Contacts and segments**](/docs/contacts) — Keep customer profiles, consent, lists, and behavior connected. - [**Transactional API**](/docs/transactional-api) — Send receipts, alerts, and product messages from your application. - [**Analytics and activity**](/docs/analytics) — Understand delivery, opens, clicks, and customer activity. - [**Signup forms**](/docs/forms) — Embed signup forms, manage themes and collect double-opt-in consent. - [**Customer events**](/docs/events) — Feed product behavior into segments and flows. - [**SMTP**](/docs/smtp) — Connect existing applications, including [Supabase Auth](/docs/supabase). - [**Receiving email**](/docs/receiving) — Read, reply, forward and subscribe to incoming mail. - [**Agent mailbox**](/docs/agent-mailbox) — Build a mailbox workflow through the API, CLI or MCP server. - [**Billing and plans**](/docs/billing) — Find Upgrade, compare tiers and understand workspace-shared usage. - [**API overview**](/docs/api-reference) — All public resource groups, authentication and error handling. ## Send with the API Transactional email uses a small HTTP API. Create an API key, authenticate with a bearer token, and send HTML, text, or a saved template. ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme ", "to": "customer@example.com", "subject": "Your order is on the way", "text": "We will send tracking details shortly." }' ``` > **Marketing and transactional email stay connected** — API sends appear in the transactional log with delivery and engagement events, while campaigns keep their own audience and performance reporting. --- # Quickstart Set up your account and send your first email. ## Before you start You can explore Email Bump and test the editor before adding a domain. For production sending, use a domain your team controls so you can add the required DNS records. > **Two ways to send** — Use the dashboard for campaigns and flows. Use the transactional API for messages triggered directly by your application. ## Create your account 1. **Create a workspace** — Sign up, name your team, and confirm your email address. 2. **Add your company details** — Set the company name and mailing address used in compliant marketing footers. 3. **Submit your sending review** — Every project's mail is held until we approve its business and sending use case. Submit it in **Settings**, or from code with the [Sending review API](/docs/sending-review-api). A person reviews it. 4. **Invite your team** — Open **Workspace → Members**. Roles and invitations belong to the selected project. **From the command line instead.** An email address is enough — no password, no browser: ```bash curl -X POST https://emailbump.com/api/v1/signup \ -H "Content-Type: application/json" \ -d '{ "email": "you@company.com", "name": "Dana", "accept_terms": true }' ``` You get a project key and an account key back. Nothing sends until you confirm the six-character code we email (`POST /auth/verify-email/code`, or `emailbump verify-email`). Then `GET /v1/me` tells you what's still missing before your first send — a confirmed address, a verified domain, your own postal address in the footer. Submit the project's [sending review](/docs/sending-review-api) too: nothing sends until it is approved. ## Choose a sending path - **Campaigns and flows** — Import contacts, create an audience, and build the message in the editor. [Create a campaign](/docs/campaigns) - **Transactional API** — Create an API key and send receipts, alerts, and product messages from code. [Send with the API](/docs/transactional-api) ## Check the results Open Activity to see sends, deliveries, opens, clicks, bounces, and complaints as they arrive. Campaign and flow reports group those events into useful performance metrics. ## Find your plan and upgrade On Free, **Upgrade** appears directly below **Analytics** in the sidebar. On any plan, use **Workspace → Billing**; Workspace starts expanded and remembers if you collapse it. Check the current plan there before choosing an upgrade. An owner of the selected project can choose a tier and complete payment; paid customers can compare higher tiers for capacity and available per-contact rates. [Billing and plans](/docs/billing) explains shared usage, automatic contact-tier changes and add-ons. --- # Sending domains Authenticate your domain and build a reliable sending reputation. ## Why add a domain A verified sending domain lets Email Bump send as your brand and gives mailbox providers the authentication signals they expect. It removes the shared-domain testing limit, not plan limits or anti-abuse checks. **Until you have verified one, send as `noreply@viaemailbump.com`** — the shared testing sender, available to projects without a sending hold. Once a domain is verified the shared sender is no longer accepted for that project: switch your From address to your own verified domain. ## Shared domain limits The shared testing sender is for trying things out, so it is limited: - **Every project** can send 100 emails a day (UTC) from it. - **On top of that, a new account** — unpaid, in its first 14 days — is limited per owner, across every workspace that person owns: 100 marketing emails (campaigns, flows and previews together) and 200 transactional emails (API, SMTP, inbox replies and forwards) in any rolling 24 hours. Previews go only to people on your team. Addresses on Email Bump's own inbox domains (agent inboxes) count as the shared domain for both limits — they need no DNS either. On a paid plan the per-project cap does not apply to them, and verifying a domain does not lift their new-account limit: it lifts after 14 days or on a paid plan, or when you send from your own verified domain instead. A campaign or flow email over the limit is not failed. It waits, and goes out as the window rolls — or, from the shared domain, when you verify a domain: whatever is waiting then sends from your verified domain instead, where these limits do not apply, still paced by the new-account sending ramp. A transactional send over the limit is refused with `429`; one queued with `scheduled_at` waits instead, and says why. Paying for a plan also lifts the new-account limit. ## Confirm your email first Nothing is sent until the account is confirmed — every owner of the project has confirmed their email address. That applies when a send starts and again when it goes out: if an owner changes their address, scheduled campaigns, flow steps, queued emails and form confirmations wait until they confirm the new one, then continue on their own. The owner who has to confirm is told `Confirm your email address before sending — check your inbox for the link, or resend it.`; a teammate waiting on them is told who it is, and can send them their link again. A project with no owner cannot send until an admin makes someone its owner. ## Add a domain 1. **Open Domains** — In the dashboard, go to **Workspace → Domains** and choose **Add domain**. 2. **Enter your sending domain** — Use a domain or subdomain you control, such as `mail.acme.com`. You can send from addresses on that exact domain after verification. 3. **Copy the DNS records** — Add every record exactly as shown at your DNS provider, then return to Email Bump and check verification. ## Review before sending New `.site` and `.shop` domains require a review. So does a domain registered in the last 30 days, or one whose name includes another company's brand, and other automated checks can place a domain into review too. Adding one immediately holds sending across its workspace, including the shared test sender, API, SMTP, campaigns, flows and subscriber confirmation emails. Domains verified before these checks existed are not placed into review; one still waiting on DNS is checked when it verifies. Sending domains shows one line saying why a domain is held; reviews usually take a few hours. If the email address you signed up with is on a newly registered domain, that domain is reviewed the same way. Confirming the address proves you own it, so there are no DNS records to publish for it. Add the domain and publish its DNS records. After ownership is verified, open **Sending domains** and submit your business name, website, planned emails and how recipients agreed to receive them. DNS verification proves ownership; it does not lift the review hold. Setup, sign-in and support stay available. We email you the decision. If the request is denied, your answers stay saved: update them to request another review or email support@emailbump.com. Approval applies to this workspace and domain, including its subdomains. Other pending reviews, abuse suspensions and normal sending limits still apply. Moving the project to another workspace requires approval there; deleting and re-adding a domain does not clear a hold. Domains already blocked for abuse are refused when added. Contact support if you believe that block is a mistake. ## Add DNS records Email Bump provides DKIM and mail-from records for the domain. DNS updates may be visible within minutes, but some providers can take up to 48 hours to publish changes. > ⚠️ **Do not remove existing mail records** — Add the records Email Bump provides without replacing records used by your current inbox or other sending services. ## Branded tracking Branded tracking uses `links.yourdomain.com` for tracked links. This step is optional; until it is active, sends use the shared tracking domain. --- # Billing and plans How workspaces, projects, and shared limits work — one plan and one bill per workspace. ## Workspaces and projects Email Bump organizes your account into **workspaces** and **projects**. A workspace is the billing container: it has its own plan and its own bill, and it holds one or more projects. A project keeps its campaigns, contacts, and domains separate, while sharing its workspace's billing. - **Workspace** — owns the plan and the bill. Everything inside it draws from one subscription. - **Project** — a separate space for campaigns and contacts that shares the workspace's plan. > Group projects into a workspace when they should share a plan. When a project needs its own separate bill, create a new workspace for it. ## What's shared across projects Your plan's limits and features are pooled across every project in the workspace — not counted per project: - **Contacts** — only contacts with `subscribed=true` and `email_status=active` count toward the billing limit. Unsubscribed and suppressed contacts can remain stored without counting. Counts are added across projects; the same address in two projects counts twice if both records are active subscribers. - **Monthly email allowance** — campaign, automation, and transactional sends from every project draw from the same monthly allowance. - **Features** — the workspace's effective plan and any overrides determine access across its projects. Custom domains, automations, webhooks, API access and advanced segments are included on the standard Free plan too. Removing Email Bump branding is a paid benefit; dedicated IPs are separate add-ons, not automatically included. The usage shown on the Billing page reflects this pooled total, so it matches the limits that are actually enforced. ## What's set per project - **Members and invitations** — roles are per project. Standard plans include unlimited members; a custom seat limit, if configured, applies per project. - **Shared-domain sending limit** — testing from the shared Email Bump domain has a daily cap. Once the project has a verified domain, use that domain: the shared sender is no longer accepted. Verification removes only the shared-domain cap, not plan limits or anti-abuse checks. ## Plans and pricing Compare the current contact tiers and monthly or annual prices on [pricing](https://emailbump.com/pricing) or Billing. Standard plans include unlimited members and projects; an operational safety limit of 25 sending domains applies per project. Check the selected workspace's actual plan, usage and features in Billing rather than inferring its plan from how many contacts were imported. Sending has two separate controls: a configured monthly email cap stops sends when exhausted; fair-use guidance warns as volume approaches or exceeds the plan's allowance. Paid plans with no hard monthly cap still have fair-use guidance. Campaign, automation and transactional usage are pooled. The metering window follows the subscription's monthly billing-cycle day when available, including annual subscriptions; otherwise it starts on the first day of the UTC month. When a paid workspace outgrows its contact tier, contact-growth processing can automatically move the subscription to the smallest available tier that fits, with proration and an owner notification. Beyond the largest self-serve tier, contact support. Removing contacts does not automatically downgrade the plan. Importing contacts is not a payment: a Free workspace still needs an explicit upgrade through Billing. Already paid? Compare a higher plan for more capacity and, where the current catalog offers it, a lower price per included contact. A lower unit rate does not mean a lower total bill. ## Manage your subscription On the **Free plan**, click **Upgrade** directly underneath **Analytics** in the sidebar. This shortcut appears only after the selected workspace's effective plan is confirmed as Free; it is hidden for paid plans and while plan details are loading. On **any plan**, open **Workspace → Billing**, or go directly to [Billing](https://emailbump.com/dashboard/billing). The Workspace section starts expanded; if you previously collapsed it, click Workspace to reopen it. Email Bump remembers your choice. You need the **Owner role on the selected project** to change the plan or open the billing portal. The change affects the entire workspace, not just that project. If Billing says **Owner-only**, ask an owner to complete the upgrade. Choose a tier and monthly or annual billing. A first paid subscription opens Stripe Checkout to collect payment details. Switching between paid plans updates the subscription with proration. To return to Free, use **Manage billing** and cancel through the Stripe portal; check the cancellation date shown there and in the dashboard. The portal also manages payment methods and invoices. ## Add-ons Billing lists the add-ons available for the workspace, including extra sends and any eligible dedicated-IP options. Availability can depend on an active paid subscription, sending volume, approval and provisioning. Review the add-on preview and recurring cost before confirming; it is separate from the base plan. Extra-send packs extend the fair-use allowance and do not remove a separately configured hard monthly cap. > Need a separate bill? Create a new workspace. Each workspace carries its own plan, payment method, and invoices, with its own pooled limits. --- # Email editor Write personal-looking messages or build fully designed emails. ## Choose a style The same editor supports two useful outcomes. Start with a plain, native-style message when the email should feel personal, or use designed sections, images, columns, and buttons when the campaign needs stronger visual structure. - **Plain and native-style** — Best for direct updates, founder notes, and simple product communication. - **Styled and designed** — Best for launches, newsletters, promotions, and visual storytelling. ## Personalize content Insert contact and team values with Liquid variables. Missing values render as blank, so preview the fallback experience before sending. ``` Hi {{ contact.first_name }}, Here is the latest update from {{ team.name }}. ``` ## Preview and test 1. **Preview the email** — Check desktop and mobile widths and review both HTML and plain-text output. 2. **Use sample contact data** — Confirm personalization, conditional content, and links with realistic values. 3. **Send a test** — Open the message in the inboxes your customers use before scheduling the full audience. --- # Campaigns Create, target, schedule, and measure marketing sends. ## Campaign workflow 1. **Set the details** — Name the campaign, choose the sender, and write the subject line. 2. **Choose the audience** — Select a list or segment and confirm the number of sendable contacts. 3. **Create the content** — Write a plain message or build a designed email from sections and saved templates. 4. **Review and send** — Run a final test, then send now or schedule for later. ## Choose an audience Campaigns send only to contacts who are subscribed and have an active email status. Unsubscribed, bounced, and complained addresses are excluded automatically. Addresses we already know mail can't reach are skipped too, even when they're new to you — ones that bounced as “no such mailbox”, and ones our email provider won't deliver to. When the audience is 20 or more, the dashboard tells you how many were skipped. The import's “Check for bad addresses first” step catches them before they're added. On a new account, a list where a lot of the addresses are known not to exist isn't sent at all — clean it first. A new account's first campaigns go to a small first slice of the list — a tenth of it, 20 to 50 people — and the rest follows about 15 minutes later, once we've seen that those didn't bounce. If too many did, the rest is held, the campaign is paused, and the campaign page says why; clean the list, then resume it to try a fresh first slice. ## Send options Send immediately when timing is not sensitive, or schedule the campaign for a specific date and time. A scheduled campaign can be paused or cancelled before processing begins. Only a campaign that never sent can be deleted — once it has reached anyone it is permanent, because its opens and clicks would otherwise be left in your reports with nothing to attribute them to. Scheduling decides more than the hour. Three strategies control how the send rolls out: - **All at once** — everyone goes at the scheduled instant. The default, and the right answer for most lists. - **Gradual** — release the audience in batches of 1–50% every minute or hour. A large send warms up instead of arriving at the mailbox providers as one spike, which is gentler on your sending reputation and on whatever your links point at. - **Smart send time** — each recipient gets the hour they have historically opened in, within 24 hours of the scheduled time. This stays locked until the account has enough engagement to learn from — 100 opens or clicks, from 50 different people, across at least two sends, in the last six months — and the send panel tells you which part is still short. Separately, choose which clock the time is read against: - **A specific timezone** — one instant for the whole audience. - **Each recipient's local time** — the same wall-clock time everywhere, so a list spread across continents all get 8am rather than all getting your 8am. For anyone whose local time has already passed, you decide whether to send immediately or wait until tomorrow; waiting is the default. You can also re-resolve the audience at send time rather than when you schedule, so people who join the list in between are included. That option isn't available with local-time sending, which takes a single snapshot just before the earliest timezone goes out. ## A/B testing Test up to four versions on a slice of the list, then send the winner to everyone else automatically. 1. Turn on A/B and choose the test size (5–100% of the audience). 2. Add 2–4 variants. A variant only overrides what you change — set just the subject and every version shares the same body. 3. Pick the winning metric, **open rate** or **click rate**, and how long to wait before deciding (30 minutes to 7 days). An A/B test always goes out as a single fixed send: the held-back remainder has no release time until the winner is picked, so gradual pacing and recipient-local timing aren't available on a campaign that is testing. The test batch goes out first and the rest of the audience is held back. When the wait elapses the winner is chosen and the held contacts receive it — there is no second send to schedule, and nobody has to be at a desk when the timer ends. Live per-variant results are on the campaign while it runs, and you can call the winner early if the answer is already obvious. A campaign waiting on its result shows the status **testing**. Part of your list has already received email at that point, so stopping it means cancelling: the held remainder is abandoned rather than sent. ## Campaign metrics After sending, the campaign report shows delivery, human opens, clicks, click-to-open rate, bounces, complaints, and unsubscribes. Use Activity when you need the event-level timeline. --- # Automated flows Respond to customer behavior with timed, connected actions. ## How flows work A flow starts with a trigger and moves each enrolled contact through connected actions. Contacts can wait, receive email, branch based on data, or call an external webhook. ## Triggers Start flows from contact creation, customer events, list joins, form submissions, email engagement, segment entry, date attributes or manual enrollment. Entry filters narrow who qualifies. For a form welcome sequence, use `form_submit`: it includes existing contacts submitting again and waits for confirmation on double-opt-in forms. [Flows API](/docs/flows-api#triggers) lists the trigger fields and current form-ID limitation. ## Actions - **Send email** — Deliver a saved or flow-specific message. - **Wait** — Pause before the next step. - **Branch** — Choose a path from contact or event data. - **Webhook** — POST to an external URL with retries. Flows also support time-of-day and event waits, weighted splits, per-email A/B variations, list changes, setting contact attributes, team notifications and explicit exits. See [Flows API](/docs/flows-api#steps) for each action's fields and branching constraints. ## Activate a flow Draft flows autosave. Active and paused flows require **Save changes** and confirmation; the dialog calls out trigger and exit-goal changes. Cancel keeps edits local, and leaving with unsaved edits requires confirmation. For an active flow, a confirmed save applies live settings and the new step version together. Exit-goal changes can affect contacts already in the flow. Save and review the full graph before activation. Active flows accept new enrollments. Pausing stops new enrollments and holds contacts already inside at the step they are on: nothing more is sent to them until you resume. Waits keep counting while a flow is paused, so when you resume, anyone whose wait ended in the meantime moves on, in the order their steps came due. Saving an active flow or resuming publishes a new step version; existing enrollments finish on the version they entered. A flow that has enrolled anyone cannot be deleted—pause it to preserve its history. > **Test the path first** — Use a test contact and a short delay to confirm content, conditions, and external webhook responses before activating a production flow. Everything on this page is available from code too — triggers, waits, and branches as a list of steps. See the [Flows API](https://emailbump.com/docs/flows-api). --- # Contacts and segments Keep customer profiles, consent, lists, and behavior connected. ## The contact model Each profile starts with an email address and can include name, location, company, phone, and custom attributes. Email and behavioral activity are attached to the same contact timeline. ## Import contacts Upload a CSV from Contacts. Common headers such as `first name`, `company`, and `country` map to standard fields. Other columns become typed custom attributes. Review the column mapping, consent values and list selection before submitting. Import verification modes are `basic` (default), `strict` and `off`; malformed or reserved-domain addresses are still refused even with verification off. Addresses whose domain is a misspelling of a common provider (for example `gnail.com` or `hotmial.com`) are imported but kept unsubscribed, and the import summary says how many. The check uses syntax, DNS, address-category signals and this project's bounce/complaint history, not an SMTP mailbox probe. A lookup failure alone does not prove an address invalid. See [Contacts API verification](/docs/contacts-api#verify) for modes, results and limits. CSV import itself is a dashboard feature, not a public `/v1/contacts/import` endpoint. > **Normalize before importing** — Use one row per email address, remove addresses you cannot contact, and keep a record of how each person subscribed. Every import is also read as a whole list, together with anything else the account imported in the last day. A list that looks bought or scraped — for example, one where many addresses are role addresses such as `info@` and `sales@` — is flagged in the import summary. On an account that is new or has little sending history, the addresses that import added are held from all email and marked **In review** on the Contacts page until we have reviewed the list, usually within a day: campaigns, flows, double opt-in confirmation requests and the emails API leave them out until then, and deleting and re-adding a held contact does not release it. Contacts already in the project are never held by an import. Lists people signed up for send best. ## Export contacts Use **Export CSV** on Contacts to download all matching contacts, including the search and status filters, not just the current page. On a list it exports members with a `list_status` column (`confirmed`, `pending` or `unsubscribed`); the Segments row menu exports contacts matching that segment. The file includes email, name, company, phone, country, city, timezone, marketing consent and the state fields `email_status`, `unsubscribed_at`, `created_at` and `id`. Custom columns use the first 200 distinct attribute keys alphabetically across the project, excluding collisions with those profile and state columns. Email Bump recognizes its profile headers automatically; other providers may require mapping. Re-importing is not a full restore: automatic import skips the four state fields and `list_status`, and structured custom attributes come back as text. Mapping `email_status` to **Delivery status** keeps bounced and complained addresses unmailable in the project you import into. The `subscribed` column can change marketing consent. It reads common yes and no values, such as `true`/`false`, `y`/`n`, `opted in`/`opted out`, `unsubscribed` and `do not email`, in any case. Any other value never changes an existing contact, adds a new contact as unsubscribed, and is counted in the import summary. A blank cell leaves an existing contact as it is and subscribes a new one. A yes only resubscribes someone who unsubscribed if you tick **Resubscribe people who unsubscribed before**, and an import never resubscribes someone who reported spam. See [the Contacts API](/docs/contacts-api#export) for the CSV format, filtering differences and `GET /v1/contacts/export`. ## Lists and segments To add imported contacts to a list, open **Contacts**, select individual contacts or **Select all N contacts**, then click **Add to list**. Selections stay selected across pages. With a search or status filter, **Select all** includes every matching page. Choose an existing list or type a name to create one. You can also open a list and choose **Add contacts → From contacts → Add all N contacts**. Both paths show the exact number of new members before you apply the change. Existing members are skipped, and people who previously left that list stay out. Double-opt-in lists queue confirmation emails; ordinary lists can trigger list-join automations. Existing consent and sending restrictions are preserved. Lists are explicit groups you manage directly. Segments are dynamic audiences based on profile fields and behavior. Use lists for known membership and segments when the audience should update as customer data changes. ## Consent and email status Subscription consent and deliverability status are separate. Marketing recipients must be subscribed and active. Transactional messages do not require marketing opt-in, but still enforce applicable suppression, sender and sending checks. Hard bounces and complaints suppress the address; repeated soft bounces temporarily suppress it until a successful delivery. A spam complaint also withdraws consent, because reporting a message as spam is a request to stop — so restoring a complained contact's deliverability does not put them back in your audience. Unsubscribes, hard bounces and complaints are also kept on the project's **Do not email** list (linked from the Contacts page), which outlives the contact: deleting someone and importing or adding them again does not make them mailable. Bounces and complaints apply to every project in the workspace; an unsubscribe applies to the project it came from. Removing an unsubscribe from the list resubscribes the person; removing a bounce or a complaint only clears that verdict, and someone who reported spam stays unsubscribed until you resubscribe them from their contact page. Clearing a bounce or complaint needs access to every project in the workspace. A person who unsubscribed and later fills in a double-opt-in form is asked to press a button on the confirmation page, so a mail scanner opening the link cannot resubscribe them. Verification is not evidence of consent. **Misspelled domains.** An address on a misspelled consumer domain (`gnail.com`, `yahooo.com`, `icloud.co`) can never reach the person. Email Bump keeps such a contact so you can see it, but unsubscribes it automatically and lists it on **Do not email** as "Misspelled email domain"; the project's team is notified. It can't be resubscribed or removed from Do not email; if you know the right address, add it as a new contact. The dashboard and `POST /v1/contacts` return a warning when this happens. Sending to one of these addresses through the API, SMTP or a flow test send is refused with a suggestion, and hosted signup forms ask the person to correct the address. ## Audience consent and recent activity Before sending marketing email, a workspace admin or owner must accept the audience consent declaration in Settings. CSV uploads also require a declaration for that file: recipients explicitly opted in and the list was not purchased, rented, scraped or obtained from a third party. The declaration records the sender, wording, version and date; it is not independent verification of each recipient’s consent. Keep the original consent records. The 180-day inactivity rule is on by default for campaigns, flow emails and marketing API sends. Contacts with no recorded activity in the past 180 days are excluded, including contacts with no activity history. Activity includes tracked opens excluding detected machine opens, clicks, confirmed native form or list signups, and recorded site events with keys `login`, `logged_in`, `signed_in`, `purchase` or `order_completed`. Importing, editing or recreating a contact does not reset the clock. Customers can view the policy in Settings; only platform admin can change it, with a recorded reason. Contact support to review external activity records. Transactional email is unaffected. --- # Transactional API Send receipts, alerts, and product messages from your application. ## Endpoint **POST** `/api/v1/emails` Authenticate every request with an Email Bump API key. The sender must use a verified sending domain — or, until you have verified one, the shared testing sender `noreply@viaemailbump.com`, which is limited (see [Sending domains](https://emailbump.com/docs/domains)). Nothing sends until the account's email address is confirmed: until then a send is refused with `403`. The project's [sending review](/docs/sending-review-api) must also be approved, with transactional sending included. ## Send an email **Body parameters** - `from` — *string*, required — Sender, optionally with a display name: `Acme `. Must be your shared or a verified domain. - `to` — *string*, required — Recipient email address. A one-element array (`["jamie@example.com"]`) is accepted too, for clients ported from an API that takes a list. - `cc` — *string or array*, optional — Visible copies. Everyone on the message sees these addresses. See [Copies](#copies). - `bcc` — *string or array*, optional — Blind copies: delivered, but named nowhere in the message. - `subject` — *string*, optional — Subject line (or inherited from a template). - `html` — *string*, optional — HTML body. - `text` — *string*, optional — Plain-text body. - `reply_to` — *string*, optional — Reply-To address. - `template` — *object*, optional — Render a saved template: `{ "id", "variables" }` instead of raw content. - `template_id` — *string*, optional — Flat alternative to `template.id`. - `variables` — *object*, optional — Flat alternative to `template.variables`. Values are readable both at the top level (`{{ order_id }}`) and under `contact`. - `attachments` — *array*, optional — Files to send along. See [Attachments](#attachments). - `scheduled_at` — *string*, optional — RFC 3339 future time to send later instead of now. - `stream` — *string*, optional — `transactional` (default) or `marketing`. See [Marketing over the API](#marketing-over-the-api). ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme ", "to": "jamie@example.com", "reply_to": "support@acme.com", "subject": "Your order has shipped", "html": "

On the way

Tracking: EB-2048

", "text": "Your order is on the way. Tracking: EB-2048" }' ``` Provide `html`, `text`, or both. When only HTML is supplied, Email Bump creates a text version. When only text is supplied, it creates a minimal HTML part. **One `to`.** This endpoint takes a single `to` address. Each send is metered, tracked and unsubscribed on its own, so five different people is five calls, not one send with five recipients — pass more than one `to` and you'll get a `400` saying exactly that. To reach an audience in one request, use a [campaign](https://emailbump.com/docs/campaigns-api). ## Retry safely Add an `Idempotency-Key` header when the same request might be sent twice — a retry after a timeout, a job that runs again. Repeat the request with the same key and body and you get the first response back instead of a second email. ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-2048-shipped" \ -d '{ "from": "Acme ", "to": "jamie@example.com", "subject": "Your order has shipped", "html": "

On the way

" }' ``` - **The key** — 1 to 256 printable ASCII characters; anything else is a `400`. Use one key per email you mean to send, such as an order id and the event, or a UUID. - **Where it applies** — keys belong to the project and last 24 hours from the first request. After that the key is new again. An all-access key acting in a project with `X-Project-Id` shares that project's keys. - **A repeat** — the same key and the same JSON body return the first response's status code and body unchanged, with the header `Idempotent-Replayed: true`. No email is sent or recorded again and nothing counts against your limits, copies and scheduled sends included. The API key you repeat it with must still be valid, and a suspended workspace is refused. - **A refusal** — if the request was refused before anything was sent (a validation error, the sending review, a suspension, a rate limit or your plan's monthly limit, or a `503` while delivery is paused), the key is not kept: fix the request and retry with the same key. If the provider refused the message itself (a `400` reading `Send failed: …`), that answer is kept and repeated; use a new key to try again. A key can also be answered with a `409` carrying a `code`: - `idempotency_key_reused` — the key was already used with a different body, or on another endpoint. Use a new key. - `idempotency_key_in_progress` — the first request with this key hasn't finished. Retry in a few seconds to get its result. - `idempotency_key_outcome_unknown` — rare: the first request was interrupted after it started sending, so whether the email went out isn't known. It is never sent again with this key. The error names the email's id; look it up with `GET /v1/emails/{id}` before sending again with a new key. Requests without the header behave exactly as before. `POST /v1/webhooks` takes the same header. ## Copies `cc` and `bcc` copy the **same message** to other people. Each takes one address or an array of them, up to 50 between them. ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme ", "to": "jamie@example.com", "cc": ["Dana ", "ops@acme.com"], "bcc": "archive@acme.com", "subject": "Your order has shipped", "html": "

On the way

" }' ``` Everyone on the message sees the `Cc` addresses in their copy. Nobody sees the `Bcc` ones — not the `to` recipient, not the other blind copies. **A copy is a send.** Each one is delivered on its own envelope, so it gets its own provider message id and therefore its own delivery, open, click and bounce events — that is what keeps a cc'd recipient's bounce attributable to *them* rather than to whoever was in `To`. It also means each copy counts against your plan's monthly email allowance and appears as its own row in **Developers → Transactional**. A message to one person with two people copied is three emails. The response carries a `copies` array, one entry per copy with its own `id`, so `GET /v1/emails/{id}` answers for a copy the same way it answers for the original. ```json "copies": [ { "id": "…", "to": "dana@example.com", "kind": "cc", "status": "sent", "message_id": "…" }, { "id": "…", "to": "archive@acme.com", "kind": "bcc", "status": "sent", "message_id": "…" } ] ``` A copy addressed to something this project has already hard-bounced or been marked as spam by is **dropped rather than sent**, and the message still goes to `to`. The dropped copy is named in `warnings`, appears in `copies` with `"status": "failed"`, and is left out of the `Cc` header — a header naming somebody who never received it is a lie the other recipients can read. `cc` and `bcc` are refused on the marketing stream: every marketing recipient is consent-checked against their own contact record and needs their own unsubscribe link, and a `Cc` header would hand one subscriber another's address. Send each person their own message, or use a campaign. An address on both `to` and `cc` — or on both `cc` and `bcc` — is delivered once, not twice. Addresses come back exactly as you wrote them, display names and all, and a scheduled send delivers the same `Cc` header an immediate one does. A message addressed to the [sandbox domain](#sandbox) must have every `cc` and `bcc` on the sandbox domain too, or none at all. A sandbox message is dropped one envelope at a time, so a real address copied onto one would be the single part of a test send that really went out. You can also send `cc` and `bcc` over [SMTP](https://emailbump.com/docs/smtp) with the same key: the gateway accepts ordinary MIME and lands in the same log. ## Marketing over the API Add `"stream": "marketing"` to send a promotional one-off without building a campaign or flow — an announcement to one person, a hand-triggered win-back, your own sending logic driving the API. The message then carries what marketing mail must: the recipient is checked against their contact record and **refused if they've unsubscribed** or their address is suppressed, the marketing footer with its unsubscribe link is appended, one-click unsubscribe headers are set, and the send is classified under the marketing stream in analytics. ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme ", "to": "jamie@example.com", "subject": "Something new for you", "html": "

We just launched…

", "stream": "marketing" }' ``` The project must pass a business and recipient-source review in Settings. Each marketing recipient needs a native confirmed signup or original opt-in evidence independently reviewed by Email Bump, plus the audience declaration and recent activity when workspace inactivity protection is enabled. A subscribed flag or declaration alone does not prove permission. The recipient must already be a subscribed contact; sending to an unknown address does not create a contact or record consent. Marketing sends require your own verified sending domain and a company name, street address, city and country in Project settings. The From display name uses that company name, matching the footer. `scheduled_at` isn't supported on this stream yet; to schedule marketing email, use a [campaign](https://emailbump.com/docs/campaigns-api). Transactional API and SMTP sends require separate approval of the customer actions that trigger them. Approved receipts and password resets do not require marketing opt-in, but marketing and cold outreach must never be relabeled transactional. Cold outreach and purchased, rented, scraped, or third-party lists are prohibited. Test sends are restricted to verified project members. ## What happened to it **GET** `/api/v1/emails/{id}` — the id `POST /v1/emails` returned, and what became of the message: ```bash curl https://emailbump.com/api/v1/emails/50b0b9a4-d447-480a-ad5b-3e1b999dd842 \ -H "Authorization: Bearer ebk_your_key" ``` ```json { "object": "email", "id": "50b0b9a4-…", "to": "jamie@example.com", "subject": "Your order has shipped", "status": "sent", "error": null, "events": [ { "type": "send", "occurred_at": "2026-08-03T01:27:57Z" }, { "type": "delivery", "occurred_at": "2026-08-03T01:27:59Z" }, { "type": "open", "occurred_at": "2026-08-03T01:31:12Z", "machine_open": false } ] } ``` `status` is our own record of the submission; `events` is what the provider reported afterwards. The distinction matters: `"sent"` means it was accepted for delivery, not that it arrived. A message to a domain with no MX record is `"sent"` and then bounces — the `bounce` event is where that shows up, usually within seconds. ## Attachments Send a receipt with its invoice, a report, a photo — anything, as base64. Up to 20 files totalling 25 MB per message. | Parameter | Type | Notes | |---|---|---| | `filename` | string, required | The name the recipient sees when they save it. | | `content` | string, required | The file, base64-encoded. A whole `data:` URI works too, so a browser's `FileReader` result can be passed straight through. | | `content_type` | string | MIME type. Guessed from the filename when you leave it out. | | `content_id` | string | Set this to embed the file in the HTML instead of listing it at the bottom, and reference it as ``. | ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme ", "to": "jamie@example.com", "subject": "Your invoice", "html": "

Thanks! Your invoice is attached.

", "attachments": [ { "filename": "invoice-4821.pdf", "content": "JVBERi0xLjQK..." }, { "filename": "logo.png", "content": "iVBORw0KGgo...", "content_id": "logo" } ] }' ``` A PDF invoice is normal and delivers fine. Executables, archives and macro-enabled documents are what spam filters look for — if a message must carry one, a link to it delivers far better than the file itself. ## Schedule for later Replace `FUTURE_RFC3339_TIMESTAMP` with a future RFC 3339 timestamp. Generate one hour from now with `node -p 'new Date(Date.now() + 3600000).toISOString()'`. This schedules a real send when used with your recipient and key. Add `scheduled_at` (RFC 3339, must be in the future) to send at a specific time. The response comes back with `status: "scheduled"`; Email Bump delivers it when it comes due. Attachments and `cc`/`bcc` are kept with it and go out with the message — copies are re-checked against suppression at the moment it sends, not when you queued it. ```bash curl -X POST https://emailbump.com/api/v1/emails \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "from": "Acme ", "to": "jamie@example.com", "subject": "Your trial ends soon", "html": "

Just a heads up…

", "scheduled_at": "FUTURE_RFC3339_TIMESTAMP" }' ``` ## List and cancel scheduled email `GET /v1/emails` lists the project's outgoing email newest first, without bodies. With `?status=scheduled` it lists the queue instead — scheduled sends and [scheduled replies](https://emailbump.com/docs/inbound-api#schedule-reply) still waiting to go — soonest first. A reply carries `in_reply_to`, the received message it answers. Other statuses: `sending`, `sent`, `failed`, `canceled`. Page with `limit` (up to 100) and `offset`. ```bash curl "https://emailbump.com/api/v1/emails?status=scheduled" \ -H "Authorization: Bearer ebk_your_key" ``` `POST /v1/emails/{id}/cancel` takes one out of the queue before it goes, and returns it with `status: "canceled"`. Only a scheduled email that has not started sending can be canceled: once it is sending or sent the answer is `409`, and it says which. Canceling twice returns the canceled email again, so a retry is safe. If an earlier attempt to send it was interrupted, the response carries a warning that the first attempt may already have been delivered. ```bash curl -X POST https://emailbump.com/api/v1/emails/EMAIL_ID/cancel \ -H "Authorization: Bearer ebk_your_key" ``` From the CLI: `emailbump emails:list --status scheduled` and `emailbump emails:cancel EMAIL_ID` (several ids at once are fine). ## Use a template Pass a saved template ID and variables instead of raw content. Variables are available at the top level and under `contact`. ```json { "from": "Acme ", "to": "jamie@example.com", "template": { "id": "9d7073b0-63b0-4ad0-925e-c43f04619ec2", "variables": { "first_name": "Jamie", "order_id": "EB-2048" } } } ``` ## Response ```json { "id": "6dde5322-c940-43e5-84cc-97a2d8c69c08", "message_id": "provider-message-id", "to": "jamie@example.com", "from": "Acme ", "subject": "Your order has shipped", "status": "sent", "created_at": "2026-07-20T18:42:10Z" } ``` `cc`, `bcc` and `copies` are present only when the send named somebody else. Every accepted send is recorded in **Developers → Transactional**, including its rendered content, original payload, and event timeline. ## Audience consent and recent activity Before sending marketing email, a workspace admin or owner must accept the audience consent declaration in Settings. CSV uploads also require a declaration for that file: recipients explicitly opted in and the list was not purchased, rented, scraped or obtained from a third party. The declaration records the sender, wording, version and date; it is not independent verification of each recipient’s consent. Keep the original consent records. The 180-day inactivity rule is on by default for campaigns, flow emails and marketing API sends. Contacts with no recorded activity in the past 180 days are excluded, including contacts with no activity history. Activity includes tracked opens excluding detected machine opens, clicks, confirmed native form or list signups, and recorded site events with keys `login`, `logged_in`, `signed_in`, `purchase` or `order_completed`. Importing, editing or recreating a contact does not reset the clock. Customers can view the policy in Settings; only platform admin can change it, with a recorded reason. Contact support to review external activity records. Transactional email is unaffected. --- # SMTP Send through Email Bump from anything with an SMTP setting — Supabase, WordPress, Django, Rails. ## Connection settings SMTP is a first-class way to send with Email Bump, not a shim. If a tool has a host, port, username and password field, it can send through you — your own application, a framework's mailer, a CMS, a helpdesk, CI, monitoring and alerting, a CRM, or a desktop mail client. Mail sent this way goes through the same checks and the same log as the API: it appears under Transactional with opens, clicks and bounces attached, counts against the same allowance, and obeys the same sending-domain rules. Nothing is second class about it. Like the API, it sends only once the project's [sending review](/docs/sending-review-api) is approved with transactional sending included. **Settings** - `Host` — **required** — `smtp.emailbump.com`. The same host for every workspace. - `Port` — **required** — `587` (STARTTLS). Use `2587` if your host blocks 587 (some cloud providers do), or `465` for implicit TLS. - `Username` — **required** — `emailbump`. For an all-access key, put your **project id** here instead — it's in **Settings → SMTP**, and see below for when it's needed. - `Password` — **required** — any Email Bump API key (`ebk_…`). Create one under API keys in the dashboard; keys are shown once. TLS is required. The server does not offer `AUTH` until the connection is encrypted, so a misconfigured client cannot send your key in the clear. The `From` address must use one of your verified sending domains — the same rule the API follows. **Before you have verified one, send as `noreply@viaemailbump.com`** — the shared testing sender, so you can try things out without waiting on DNS. Once you verify your own domain the shared sender is no longer accepted for that project, because its reputation is pooled across every workspace and mail from it delivers worse than mail from you. Messages may be up to 40 MB, attachments included. ### Which project does it send from? A **project key** is bound to one project, so there is nothing to choose: leave the username as `emailbump`. An **all-access key** is not bound to one, and is resolved in this order: 1. If the owner belongs to a single project, that one — nothing to configure. 2. Otherwise the `From` domain decides. A verified domain belongs to exactly one project, so `hi@acme.com` can only mean the project that verified `acme.com`. 3. If that still doesn't settle it — every project shares the same testing sender, `noreply@viaemailbump.com`, so it identifies none of them — put the project id in the username: ``` Username: 111f9258-6b77-4edb-a9f3-14bc66118b14 Password: ebk_your_key ``` Your project id is in **Settings → SMTP**, next to these connection details, with a button to copy it. You are only ever asked for it in that last case, and the error you get names your projects and their ids too, so you can copy one straight out of the reply. ## Connect your app The same four settings everywhere. These are the ones people ask for most; anything else with an SMTP box works the same way. ### WordPress (WP Mail SMTP) ``` Mailer: Other SMTP SMTP Host: smtp.emailbump.com Encryption: TLS SMTP Port: 587 Auth: On Username: emailbump Password: ebk_your_key ``` ### Django ```python # settings.py import os EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.emailbump.com" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "emailbump" EMAIL_HOST_PASSWORD = os.environ["EMAILBUMP_API_KEY"] DEFAULT_FROM_EMAIL = "Acme " ``` ### Rails ```ruby # config/environments/production.rb config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: "smtp.emailbump.com", port: 587, user_name: "emailbump", password: ENV["EMAILBUMP_API_KEY"], authentication: :plain, enable_starttls_auto: true } ``` ### Node.js (Nodemailer) ```javascript import nodemailer from "nodemailer" // install the nodemailer package const transport = nodemailer.createTransport({ host: "smtp.emailbump.com", port: 587, secure: false, // STARTTLS is negotiated on 587 requireTLS: true, auth: { user: "emailbump", pass: process.env.EMAILBUMP_API_KEY }, }) ``` ## Supabase Supabase is configured through its dashboard rather than code, and has a few specifics of its own — sender address, rate limits and its built-in templates. It has its own guide: [Supabase](/docs/supabase). ## Send a template Normally the message you hand us is the message we send. If you would rather keep the design in Email Bump, send JSON naming a saved template instead of an email body, and we render it: ```json { "template_id": "d3d04286-d773-4d06-acfd-7ee983108f0b", "variables": { "first_name": "Kevin", "url": "https://acme.com/confirm/abc" } } ``` The template supplies the subject, so the `Subject:` header is ignored for these. `transactionalId` and `dataVariables` are accepted as aliases, so payloads written for Loops work unchanged. ## Troubleshooting Replies say what went wrong rather than a bare code. - `535` **Invalid API key** — the password is not a live key. Revoked and expired keys fail here too. - `550` **several projects** — an all-access key, several projects, and a From domain that identifies none of them, usually the shared testing domain. Put the project id in the username, or send from a verified domain. - `530` **Must issue a STARTTLS command first** — the client tried to authenticate before encrypting. Turn on TLS/STARTTLS. - `550` **From email must use…** — the From domain is not verified for this project. If you haven't verified one yet, send as `noreply@viaemailbump.com`. Permanent, so the client will not retry. - `550` **You've verified …** — you sent from the shared testing domain after verifying your own. Switch the From address to your domain. - `550` **Confirm your email address before sending** — the account is not confirmed yet (every owner of the project has to be). Confirm it and send again. - `451` **limit reached** — monthly allowance, the shared-domain daily cap, or a new account's shared-domain limit (see [Sending domains](https://emailbump.com/docs/domains)). Temporary, so clients retry later. - `552` **Message exceeds…** — over 40 MB, which is the ceiling for a single message. Every attempt is recorded whether or not anything was sent, under SMTP logs in the dashboard — the reply code, the reason in these same words, the From address and how many recipients were accepted. > **A refused message isn't in the transactional log** — nothing was sent, so there is no message to log. If mail isn't arriving and the transactional log looks empty, that is the symptom: SMTP logs is where the refusals are. --- # Supabase Send Supabase Auth emails — confirmations, magic links, password resets — through Email Bump. ## Why change it Supabase Auth sends the emails your sign-up flow depends on — confirmations, magic links, invitations, password resets, email-change confirmations. Out of the box they go through Supabase's own shared service, which is meant for development: it is rate limited, the messages come from an address that isn't yours, and you cannot see what happened to them. Custom SMTP lets you send from your verified domain and inspect accepted messages in Email Bump's transactional log. Domain authentication helps establish your identity; it does not guarantee inbox placement. Both Supabase Auth's rate limits and Email Bump's sending limits still apply. See [Supabase's custom SMTP guide](https://supabase.com/docs/guides/auth/auth-smtp). ## Before you start You need two things, both a few minutes of work: - **A verified sending domain** — add it under [Sending domains](/docs/domains). Supabase's sender address has to be on a domain you have verified. - **An API key** — create one under API keys in the dashboard. It is shown once, so paste it straight into Supabase. ## Configure SMTP In your Supabase project, open **Authentication → Emails → SMTP Settings** and turn on **Enable Custom SMTP**. Then: ``` Sender email: noreply@yourdomain.com # on your verified domain Sender name: Your App Host: smtp.emailbump.com Port: 587 Username: emailbump Password: ebk_your_key ``` > ⚠️ **The sender address is the part people get wrong** — it must be on a domain you have verified in Email Bump. Left at Supabase's default, or set to a domain you haven't verified, every send is refused. The reply says so, and it shows up in Supabase's auth logs rather than anywhere obvious. If your host blocks port 587, use `2587`. Both negotiate STARTTLS; `465` is available for implicit TLS. ## Rate limits Supabase applies its own rate limit to auth emails, separate from anything here — it exists to stop a loop in your app from emailing a user hundreds of times. Once custom SMTP is on you can raise it under **Authentication → Rate Limits**. If confirmations stop arriving during a burst of signups and Email Bump shows nothing, that limit is the first place to look, because the mail never reached us. ## Templates Supabase's built-in templates keep working unchanged — we accept ordinary email, so whatever Supabase composes is what goes out. Edit them where you always did, under **Authentication → Emails → Templates**. If you would rather design them in Email Bump, replace a Supabase template with JSON naming one of yours and we render it instead: ```json { "template_id": "d3d04286-d773-4d06-acfd-7ee983108f0b", "variables": { "confirmation_url": "{{ .ConfirmationURL }}", "email": "{{ .Email }}" } } ``` Supabase's template variables — `{{ .ConfirmationURL }}`, `{{ .Token }}`, `{{ .Email }}` — go on working inside the JSON, because Supabase substitutes them before the message is sent. See [SMTP](/docs/smtp) for the full shape. ## Check it worked Use a test account and a real mailbox you control to request a confirmation or magic link from your application. Accepted messages appear in the transactional log; allow for processing time. Ordinary mail keeps Supabase's subject; JSON template sends use the saved Email Bump template's subject. If nothing appears there, check SMTP logs in the dashboard. A message we refused — almost always a sender address on a domain you haven't verified — never becomes a transactional message, so the refusal and its reason are recorded there instead. Supabase's own auth logs will show the same reply from its side. If it appears but the user says it never arrived, the delivery events on the message tell you whether it bounced, and why. Delivery is not proof that a person opened the message or successfully signed in. Test the actual confirmation link too: link rewriting and security scanners can interfere with single-use auth URLs. See [Supabase's production checklist](https://supabase.com/docs/guides/deployment/going-into-prod). --- # Stripe Turn Stripe payments, trials and cancellations into contact events and attributes, and credit each payment to the email that earned it. ## What it does Connect your project's own Stripe account and what your customers do there reaches their contact: - **Events.** Every payment, failed charge, trial and cancellation becomes an event on the customer's contact, so an automation can start on it. - **Attributes.** Each customer's plan, MRR and lifetime value are kept on their contact, for segments and for personalizing email. - **Revenue attribution.** Every payment is credited to the email that earned it, so campaign and automation reports show what each one made. Customers are matched to contacts by email address, ignoring case. Several Stripe customers at one address — a second checkout often makes a second customer — are one contact: their subscriptions and lifetime value are combined. When a customer's address changes in Stripe, later events go to the new one. A project connects one Stripe account; connecting again replaces the previous connection and removes its webhook endpoint. Only admins and owners can connect or disconnect it. ## Connect Stripe 1. **Open Integrations** — In the dashboard, go to **Integrations** and choose **Connect Stripe**. 2. **Create a restricted key** — **Open Stripe** takes you to Stripe's form for a new restricted key, with the permissions below already ticked. Create the key there. To try it on test data first, switch Stripe to test mode before you create it. 3. **Paste the key** — Paste it into the dialog and choose **Connect**. We check the key, create the webhook, and start importing your customers. To connect, re-sync or disconnect from code instead, use the [Stripe API](/docs/stripe-api). The key asks for these permissions: - `rak_customer_read`, `rak_subscription_read`, `rak_invoice_read`, `rak_charge_read`, `rak_product_read` — read access to the data the events and attributes are built from, and to the invoice a refunded charge paid. - `rak_webhook_write` — the one write permission. It lets us create a single webhook endpoint on your account that sends events back to us. - `rak_connected_account_read` — used only to show your account's name on the Integrations page. A restricted key starts `rk_live_` or `rk_test_`. A full live secret key (`sk_live_…`) is refused — it can move money on your account — and so is a publishable key (`pk_…`). Test-mode keys work too: test payments arrive as events and update contacts, but are never credited to emails, so trying it out can't put test revenue in your reports. The [CLI](/cli) and the [MCP server](/mcp) take the same keys, so an agent can try the integration on test data with a `sk_test_…` key. Before saving, we check the key can read customers, subscriptions, invoices, charges and products. If a permission is missing you see Stripe's own error, which names the permission. ### The webhook There is no webhook to set up by hand. We create the endpoint on your Stripe account ourselves, pinned to API version `2026-08-26.dahlia` so a change to your account's default version can't change what we receive, and subscribe it to: - `invoice.paid`, `invoice.payment_failed` - `checkout.session.completed`, `checkout.session.async_payment_succeeded` - `customer.subscription.created`, `customer.subscription.updated`, `customer.subscription.deleted`, `customer.subscription.trial_will_end` - `charge.refunded` - `customer.updated` — used only when an address changes - `invoice.voided` — used only to end a voided invoice's payment link Every delivery is checked against its signature before we act on it. Stripe delivers at least once, so the same event can arrive twice; a duplicate is ignored rather than recorded again. > **Where the key is kept** — The key and the webhook's signing secret stay on our servers and are never sent back to your browser. You can delete the key in Stripe at any time — see [Disconnect](#disconnect). ## Existing customers Connecting starts an import, and **Sync customers now** runs it again. It reads every subscription and successful charge on the account, and gives each Stripe customer who has an email address the [contact attributes](#contact-attributes) below. It records no events and credits no revenue for past payments. A payment from last spring isn't something a flow should react to today, and crediting it would put months of revenue into today's report. Events start with the first one Stripe sends after you connect. It also clears the `stripe_*` attributes from contacts who aren't customers of the connected account — after you connect a different account, say — so segments on them stop matching. ## Customers who aren't contacts yet **Add Stripe customers who aren't contacts yet** is on by default, and you can turn it off on the Integrations page. While it's on, a Stripe customer with no matching contact becomes a subscribed contact: - Customers found by the import are added in bulk, like a CSV import: no notification for each one, and no contact-created automations. - A new customer arriving by webhook is added like a contact created through the API, so contact-created automations start for them. - A refund never adds a contact. It's still taken back from the email its payment was credited to, even after that contact is deleted. Either way they count toward your plan's contact limit. With the setting off, only existing contacts are updated. Addresses on reserved documentation domains, such as `example.com`, are always skipped. ## Events Each of these is recorded on the customer's contact. The key is what a flow trigger or a **Wait for event** step names. Once Stripe is connected they are all in the flow trigger's event picker, even before the first one has happened. - `stripe_payment_succeeded` — **Stripe payment succeeded** — An invoice is paid for more than zero, or a one-time Checkout or Payment Link payment completes. The amount is the event's value, with its currency. Properties include `invoice_id`, `subscription_id`, `billing_reason`, `hosted_invoice_url` and `plan`. - `stripe_payment_failed` — **Stripe payment failed** — An invoice payment fails. It carries no value, so it never counts as revenue; the amount is in the `amount_due` property. Properties also include `attempt_count`, `next_payment_attempt` and `hosted_invoice_url`. - `stripe_subscription_started` — **Stripe subscription started** — A subscription starts without a trial, or an incomplete one becomes active. - `stripe_trial_started` — **Stripe trial started** — A subscription starts in a trial. Carries `trial_end`. - `stripe_trial_ending` — **Stripe trial ending** — Stripe's advance warning, normally about three days before the trial ends. - `stripe_trial_converted` — **Stripe trial converted** — A trial becomes an active, paid subscription. - `stripe_subscription_canceled` — **Stripe subscription canceled** — A cancellation is scheduled, for the end of the period or a set date. The customer keeps access until then. Carries `cancel_at`, `reason`, `feedback` and `comment`. - `stripe_subscription_ended` — **Stripe subscription ended** — The subscription ends — Stripe reports it as deleted. - `stripe_plan_upgraded` — **Stripe plan upgraded** — The subscription's monthly value goes up. Carries `previous_mrr` and `mrr`. - `stripe_plan_downgraded` — **Stripe plan downgraded** — The subscription's monthly value goes down. Carries `previous_mrr` and `mrr`. - `stripe_refund` — **Stripe refund** — A charge is refunded. The value is the amount newly refunded, as a negative number, so a revenue segment nets it out. Subscription events also carry `subscription_id`, `status`, `mrr`, `currency`, `billing_interval` and `plan`. `stripe_subscription_canceled` fires while the customer still has access, which is when an email can still change their mind. `stripe_subscription_ended` fires when the access stops. ## Contact attributes Kept current on every matching contact. Build segments on them, and use them in email as `{{ contact.stripe_plan }}` and so on. - `stripe_customer_id` — *string* — The Stripe customer id, `cus_…`. - `stripe_status` — *string* — The best standing across all their subscriptions: `active`, `past_due`, `trialing`, `unpaid`, `paused`, `incomplete` or `canceled`. Absent for someone who has never subscribed. - `stripe_plan` — *string* — The product name, or names when they pay for more than one. - `stripe_billing_interval` — *string* — `month`, `year`, and so on. - `stripe_mrr` — *number* — Monthly recurring revenue in major units — `29.0`, not cents. Other intervals are converted to monthly, so a yearly price is divided by 12. Only active, trialing and past-due subscriptions count, and only those in `stripe_currency`; metered and tiered prices count as 0. - `stripe_ltv` — *number* — Lifetime value: successful charges minus refunds, in major units, in `stripe_currency`. Charges in other currencies aren't added in. - `stripe_currency` — *string* — The currency those amounts are in. - `stripe_trial_end` — *string* — When the trial ends, as an ISO 8601 timestamp. Present only while they are trialing. - `stripe_unpaid_invoice_url` — *string* — Set when a payment fails, to the invoice's Stripe-hosted page, where they can pay it or update their card. Removed when that invoice is paid or voided. Some segments worth having: `stripe_mrr` at least 99 for your largest customers, `stripe_status` is `past_due` for people whose card is failing, and `stripe_status` is `canceled` for people who have left. Numeric comparisons need the attribute to be a number, and `stripe_mrr` and `stripe_ltv` are. > **Why the invoice link is on the contact** — A flow's emails render from the contact, not from the event that started the flow. So the link a failed-payment email needs lives on the contact, as `{{ contact.stripe_unpaid_invoice_url }}`. ## Example: failed payments An automation that chases a failed payment and stops once it's paid: 1. **Trigger** — Start a flow on the event `stripe_payment_failed`. 2. **Send the link** — Email them the invoice page, `{{ contact.stripe_unpaid_invoice_url }}`, where they can pay or update their card. 3. **Wait for payment** — Add a **Wait for event** step on `stripe_payment_succeeded`, with a timeout of a few days. 4. **Remind** — On the timeout path, send a reminder with the same link. If they pay first, the reminder never goes. The same flow from code, with the [Flows API](/docs/flows-api): ```bash curl -X POST https://emailbump.com/api/v1/flows \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Failed payment", "status": "draft", "trigger": { "type": "event", "event_key": "stripe_payment_failed" }, "steps": [ { "type": "send", "subject": "Your payment did not go through", "html": "

We could not take your last payment. Pay the invoice or update your card.

" }, { "type": "wait_event", "event": "stripe_payment_succeeded", "timeout_days": 3, "timeout": [ { "type": "send", "subject": "Your invoice is still unpaid", "html": "

A reminder: pay the invoice or update your card.

" } ] } ] }' ``` It is created as a draft, so nothing sends until you activate it. Stripe retries a failed payment, and each failed retry is another `stripe_payment_failed`. The default re-enrollment rule, `not_while_active`, keeps someone from entering the flow a second time while they are still in it. ## Revenue attribution This applies to Stripe payments and to any event you send to the [Events API](/docs/events-api) with a `value`. With Stripe connected, don't also send the same purchases to the Events API — or send them with `"attribute": false` — or each one is credited twice. When a contact's event carries a value above zero, the credit goes to the most recent **click** on a campaign or automation email inside your attribution window. If nothing was clicked and the project counts opens, it goes to the most recent human **open**. A click always beats an open, however recent the open. Automated opens — Apple Mail Privacy Protection, image proxies, security scanners — never count, and neither does a click on an unsubscribe link. Only campaign and automation emails can earn credit. Transactional mail, such as a receipt or a password reset, never does, and neither do test sends. The window is 5 days unless you change it. Set anything from 1 to 30 days under **Settings → Revenue attribution**, along with **Credit opens too**, which is on by default. A change applies to purchases from then on; revenue already credited stays where it is. Credit is decided when the purchase is recorded, so a click that reaches us after that — email providers report clicks within seconds — doesn't move it. The [Revenue API](/docs/revenue-api) reads the credited totals from code and changes these settings. ### Stripe payments - A subscription's routine renewal is recorded — it is income, and it raises lifetime value — but it isn't credited to an email. No email earned this month's renewal. - A customer's first payment is credited even when Stripe bills it as a renewal, as it does when a trial converts. - Upgrades, proration invoices and one-time purchases are credited. - A refund takes its amount back from the credit its own payment earned — matched through the invoice or Checkout payment it refunds, even when Stripe sends the refund first — never more than that payment earned. The debit is dated with the purchase, so every report that counted the purchase nets it out, and the purchase still counts as a conversion. Refunding a payment no email earned, like a renewal, takes nothing back. - A payment your own code makes with a PaymentIntent, outside invoices and Checkout, isn't recorded as it happens. It reaches lifetime value at the next import. Send it through the [events API](/docs/events) if an email should get credit for it. - Failed payments are never revenue. - Test-mode payments are never credited. Amounts in different currencies are never added together. Reports lead with the currency most purchases were in and list the others separately. ### Where it shows - **Analytics** — a Revenue tile, with revenue per delivered email, and a **Top earning emails** card listing campaigns and automations. - Each campaign's **Metrics** tab. - An automation's metrics, per send step on the canvas and in the side panel. - Each contact's activity timeline — for example, "Credited to Spring sale (clicked before buying)". ## Disconnect **Integrations → Stripe → Disconnect** removes our webhook endpoint from your Stripe account. If the key was already revoked we can't reach Stripe to do that, so delete the endpoint yourself under **Developers → Webhooks** in Stripe; the dashboard tells you when that's needed. Contacts keep their `stripe_*` attributes and past events. Automations waiting on Stripe events stop receiving them. ## Troubleshooting The Integrations page shows when the last event arrived and, if one couldn't be processed, the error. Stripe retries a failed delivery for up to three days. If the key was rolled or deleted in Stripe, events can't be processed. Disconnect, then connect again with a new key. If a payment landed on the wrong contact, or on none, compare the email address on the Stripe customer with the contact's. That address is the only thing they are matched on. --- # API overview Base URL, authentication, errors, and pagination for the REST API. ## Base URL & authentication Most endpoints authenticate with an API key as a bearer token — create one under **Developers → API Keys**. Discovery (`GET /v1`) and signup (`POST /v1/signup`) are public exceptions. Dashboard session routes under `/api/teams` do not accept API-key authentication. ``` https://emailbump.com/api/v1 ``` ```bash curl https://emailbump.com/api/v1/contacts \ -H "Authorization: Bearer ebk_your_key" ``` ## Start here Replace example keys, IDs, domains and recipient addresses with values for your own project. Example addresses are documentation placeholders, not test inboxes. Two calls help you discover the API and check your setup: ```bash curl https://emailbump.com/api/v1 # the index — no key needed curl https://emailbump.com/api/v1/me -H "Authorization: Bearer ebk_your_key" ``` `GET /v1/me` reports the selected project, email-confirmation state, verified domains, suggested sender and footer address. `sending.ready` requires a confirmed account, a [sending review](/docs/sending-review-api) approved with transactional sending (`sending.sending_review`), since `POST /v1/emails` is transactional unless told otherwise, and no sending hold. Use an owned agent inbox, a verified domain, or the shared testing sender when eligible. `sending.domain_review_required` identifies a domain review hold; `sending.sending_held` also includes abuse suspensions. Limited shared-domain testing can be available before domain verification only when sending is not held. It is a setup check, not a promise that a particular send will pass consent, suppression, plan-limit and abuse checks. Marketing mail also needs your own postal address. ```json { "project": { "id": "7a10f0f2-…", "name": "Main", "object": "project" }, "sending": { "ready": true, "sending_review": { "status": "approved", "transactional_enabled": true }, "email_confirmed": true, "verified_domains": ["mail.acme.com"], "default_from": "hello@mail.acme.com", "note": "Ready. `from` must be an address on one of the verified domains." }, "footer": { "address": "12 Bridge Street, Austin TX", "is_your_own_address": true } } ``` ## No account yet `POST /v1/signup` creates one from the command line — an email address, no password, no browser: ```bash curl -X POST https://emailbump.com/api/v1/signup \ -H "Content-Type: application/json" \ -d '{ "email": "you@company.com", "name": "Dana", "accept_terms": true }' ``` It returns a **project key** for sending and an **account key** for creating further projects and keys. The account cannot send until the six-character code we email is confirmed with `POST /auth/verify-email/code`. See [Authentication](https://emailbump.com/docs/api-keys). ## Two halves, one API Everything lives under the same base URL, and every reference page says at the top which key reaches it. The split is only about what a resource belongs to: - **Project API** — what you send and who you send it to: contacts, events, lists, segments, templates, campaigns, flows, transactional email. A **project key** reaches these directly. - **Account API** — the structure those projects live in: workspaces, projects, project keys, sending domains. Needs an **all-access key**, and is mostly for agents and CLIs setting an account up. An all-access key can do both: it reaches any project resource too, by naming the project per call with an `X-Project-Id` header. A project key stays inside its own project. See [Authentication](https://emailbump.com/docs/api-keys). One exception, because it was the wrong side of the line: a project key manages **its own project's sending domains** at `/v1/domains` — list, add, check. Setting up sending is the first thing a project needs to do, and it shouldn't require the wider credential. ## Pagination Contacts, campaigns, flows, and flow enrollments accept `?limit=` (max 100, default 25) and `?offset=`, and return `{ "data": [...], "total", "limit", "offset" }`. Lists, segments, and templates return the full set as `{ "data": [...] }`. Other resources have their own pagination contracts; see their reference pages. Inspect attributable requests under **Developers → API logs**. ## Plan limits and usage `GET /v1/limits` reports the selected project's workspace plan, billable active-subscriber count and pooled fair-use sending allowance. It is not a per-project quota or the separate hard monthly send-cap check; see [Billing](/docs/billing). ```bash curl https://emailbump.com/api/v1/limits \ -H "Authorization: Bearer ebk_your_key" ``` ```json { "plan": "growth", "plan_name": "Growth", "contacts": { "count": 8412, "limit": 25000 }, "sending": { "this_month": 31204, "included_per_month": 250000, "remaining": 218796, "over_limit": false }, "features": { "automations": true, "custom_domains": true } } ``` A `0` contact limit and a `null` `included_per_month` both mean unmetered. ## Tracing a sent message Every message Email Bump sends — API, SMTP, campaign, or flow — carries two headers that say where it came from, so a forwarded email or a bounce report can be tied back to a project without a database lookup: ``` X-EmailBump-Project: 7a10f0f2-3b44-4c19-9c6e-2f81a6d4e0aa X-EmailBump-Stream: transactional ``` `X-EmailBump-Stream` is `transactional`, `marketing` (campaigns), or `automation` (flows). The project id is the same value you would pass as `X-Project-Id`. Inside Email Bump the same ids ride along as provider message tags — project, stream, and the campaign, flow, step, or A/B variation responsible — which is what the reports join on. **Developers → Transactional** has submitted API and SMTP messages with their provider message IDs, rendered content and event timelines; **Developers → API logs** has the attributable request that caused an API submission. **SMTP logs** also shows gateway attempts that failed before a message was created. ## Unrecognised fields On `/v1/emails`, a field we don't read is ignored but not silently — the response carries a `warnings` array naming it. `from_name` is the one that bites: it's a real field on campaigns and flows, and here the display name belongs in `from` (`"Acme "`). A typo that changes nothing is worth hearing about at the time. Contact create/upsert and update reject unknown fields with `400`, including typos such as `first_nmae` or unsupported fields such as `tags`. Other endpoints can still ignore unknown fields: use the documented request shape and check the returned resource. A successful status alone does not prove an unrecognized field was applied. ## Errors Application errors use the JSON shape below; framework or proxy rejections can differ. Success codes depend on the endpoint: reads normally return `200`, contact upserts return `201` for a new contact or `200` for an update, and many deletes return `204` with no body. Check each endpoint's contract rather than assuming every write returns the same code. ```json { "error": "Enter a valid email address" } ``` - `400` — invalid or malformed request body / validation failed - `401` — missing or invalid API key - `402` — upgrade required for a paid feature (adds `code`, `feature`, and `upgrade_to` fields) - `403` — insufficient permissions or sending restrictions - `404` — resource not found (or not in your project) - `409` — conflict with the resource's current state - `429` — rate limit or sending allowance reached; read the error for the specific limit - `500` — internal failure; retry cautiously because a send's outcome may be uncertain ## Project resources One page per thing you can act on, all reachable with a project key: - [Transactional](/docs/transactional-api) — `/v1/emails`, one-off & scheduled sends, `cc`/`bcc` copies, and `GET /v1/emails/{id}` for what became of one - [Sending review](/docs/sending-review-api) — `/v1/sending-review`, get the project approved to send, read the decision, and resubmit - [Domains](/docs/domains-api) — `/v1/domains`, this project's sending domains - [Contacts](/docs/contacts-api) — `/v1/contacts`, create, update, list, consent - [Events](/docs/events-api) — `/v1/events`, track behaviour - [Revenue](/docs/revenue-api) — `/v1/revenue`, what campaigns and flows earned, and the attribution rules - [Lists](/docs/lists-api) — `/v1/lists`, audiences & membership - [Forms](/docs/forms-api) — `/v1/forms`, embeddable signup forms, themes & submissions - [Segments](/docs/segments-api) — `/v1/segments`, read live queries - [Templates](/docs/templates-api) — `/v1/templates`, reusable MJML content - [Campaigns](/docs/campaigns-api) — `/v1/campaigns`, send & schedule marketing - [Flows](/docs/flows-api) — `/v1/flows`, automated journeys - [Inbound](/docs/inbound-api) — `/v1/inbound`, email people send you - [Webhooks](/docs/webhooks-api) — receive events at your own URL - [Stripe](/docs/stripe-api) — `/v1/integrations/stripe`, connect, sync & disconnect a Stripe account ## Account resources The provisioning half, for standing an account up. Needs an all-access key: - [Workspaces](/docs/workspaces-api) — `/v1/workspaces`, the billing container - [Projects](/docs/projects-api) — `/v1/projects`, projects and their keys - [Domains](/docs/domains-api) — sending domains and DNS verification --- # Contacts API Create, update, list, and manage consent for your audience. ## Endpoints - **GET** `/v1/contacts` - **POST** `/v1/contacts` - **GET** `/v1/contacts/export` - **GET** `/v1/contacts/{id}` - **PATCH** `/v1/contacts/{id}` - **DELETE** `/v1/contacts/{id}` - **POST** `/v1/contacts/{id}/subscribe` - **POST** `/v1/contacts/{id}/unsubscribe` - **POST** `/v1/contacts/verify` - **GET** `/v1/contacts/verify/{job_id}` ## Check a list before importing `POST /v1/contacts/verify` checks 1–10,000 addresses without creating contacts or sending mail. Send `{ "emails": ["person@yourdomain.com"] }`. Checks include syntax, domain mail routing, disposable/role-address signals, this project's known bounce or complaint history, and addresses known across Email Bump not to exist (`known_to_bounce`) or that our email provider won't deliver to (`cant_be_delivered`). This is not mailbox verification: `ok` means nothing known against the address, not proof that it exists or that you have consent. - `undeliverable` — a definitive blocking signal, such as invalid syntax, a reserved domain, no mail servers, null MX, or a known hard bounce or complaint. - `risky` — an established warning, such as a role address, disposable domain or repeated soft bounces. This is not proof that the mailbox exists. - `unknown` — the lookup failed. Retry later; a failed lookup alone is not a reason to remove a contact. - `ok` — no known blocking or risk signal. Not a mailbox-level verification or permission to send. Each result includes `score`, `reasons` and `provider`. Read `guidance` for the check's limitations. Never treat verification as permission to send purchased or unsolicited lists. **Branch on `mode`.** `mode: "inline"` includes `results`, `summary` and `guidance`. `mode: "job"` returns a queued job instead. Poll `GET /v1/contacts/verify/{job_id}`; its response is `{ "job": { ... } }`. Stop when `job.status` is `completed` or `failed`, and check `job.error` on failure. A completed job supplies `summary`, `guidance` and a capped `flagged` list, not a full per-address `results` array. Up to three checks can be queued/running per project. The dashboard CSV importer can apply `verify_mode=basic` (exclude undeliverable) or `strict` (also exclude risky). `off` skips those checks, but malformed and reserved-domain addresses are still rejected. A lookup failure alone never excludes a row; strict mode can still reject it for a separate established risk. Import is a dashboard session operation, not a public `/v1/contacts/import` endpoint. ## Create or update a contact **Body parameters** - `email` — *string*, required — The contact's email address. Identifies the contact for the upsert. - `first_name` — *string*, optional — Given name. - `last_name` — *string*, optional — Family name. - `company` — *string*, optional — Company or organization. - `city` — *string*, optional — City. - `country` — *string*, optional — Country. - `phone` — *string*, optional — Phone number. - `timezone` — *string*, optional — IANA timezone, e.g. `America/New_York`; used by local-timezone and smart send times. - `attributes` — *object*, optional — Any custom key/value attributes to store on the contact. Merged into whatever is already stored, so a second call never erases what the first recorded. - `subscribed` — *boolean*, optional — Marketing consent. Defaults to `true`. Send `false` to record someone who signed up but did not opt in: they still receive transactional mail (receipts, password resets) and no marketing. Omit it when upserting an address you already have and their existing consent is left exactly as it was — that is how you avoid revoking consent someone gave you earlier. Only an explicit value that differs changes it, so restating `false` keeps the original `unsubscribed_at`. `true` never resubscribes an address the project's Do not email list holds as unsubscribed or reported as spam — even one whose contact you have since deleted — and neither does leaving it out when the upsert creates the contact: the contact stays (or is created) unsubscribed, and the response carries a `warnings` entry saying why. Someone who unsubscribed can come back through `POST /v1/contacts/{id}/subscribe` once you have fresh consent; someone who reported spam only through a teammate, from the dashboard. A contact you added with `false`, who never opted out, can still opt in with `true`. A change made here sends `contact.subscribed` or `contact.unsubscribed`. - `list_ids` — *string[]*, optional — List ids to add the contact to in the same call. On a normal list they're added immediately. On a double-opt-in list they're added as `pending` and emailed a confirmation link only when they have a verified opt-in on record (they confirmed one of your signup forms); anyone else is not added (`needs_consent` below). The response then carries `lists`: one entry per id, in your order, saying what happened on it the way [`POST /v1/lists/{id}/contacts`](/docs/lists-api) does — `{ "list_id", "status", "added" }`, where `status` is `confirmed`, `pending`, `unsubscribed` (they left that list and were not added back) or `needs_consent` (a double-opt-in list with no verified opt-in of theirs to confirm). A field this endpoint doesn't take — say `list_id` instead of `list_ids`, or `tags` — is a `400` naming the valid fields, never silently dropped. ```bash curl -X POST https://emailbump.com/api/v1/contacts \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "email": "jamie@example.com", "first_name": "Jamie", "company": "Acme", "attributes": { "plan": "pro" } }' ``` ```json { "contact": { "id": "5fef0867-b292-46ca-8371-e24d8575576c", "email": "jamie@example.com", "first_name": "Jamie", "company": "Acme", "attributes": { "plan": "pro" }, "subscribed": true, "email_status": "active", "created_at": "2026-07-21T19:56:38Z" } } ``` A contact added by an imported list we are reviewing also carries `review_hold`: `"review"` while the list is in review, `"rejected"` if we could not approve it, and `null` for everyone else. The hold belongs to the address, so a contact deleted and created again keeps it. Campaigns and flows leave a held contact out, and `POST /v1/emails` to a held address is refused with a `400` on either stream. **Sending the same email twice is safe.** This endpoint is an upsert, not a create — a new address is created and returns `201`, an address you already have is updated and returns `200`. The response says which: ```json { "contact": { "id": "5fef0867-…", "email": "jamie@example.com" }, "created": false } ``` So a form that submits twice, or an import you run again, updates the existing contact rather than erroring or duplicating it. Read `created` (or the status code) if you need to tell the two apart. On an update, `attributes` merge the same way `PATCH` does — keys you send win, keys you don't send stay, an explicit `null` removes one. Note that a key you *do* send overwrites the stored value: a re-submission carrying `marketing_consent: false` will overwrite a stored `true`, so only send consent-bearing keys when they carry a real answer. ## Update a contact `PATCH /v1/contacts/{id}` changes only the fields you send. It takes the same profile fields as create, minus `email` (`timezone` also takes `null` or an empty string, which clears it), plus two the upsert doesn't: - `subscribed` — *boolean*, optional — Marketing consent, set on purpose, like the subscribe and unsubscribe endpoints. `false` unsubscribes a subscribed contact, stamping `unsubscribed_at` and putting the address on the Do not email list; for someone already unsubscribed it changes nothing. `true` lifts this project's unsubscribe, so only send it on fresh, explicit consent; for someone who marked your email as spam it is a `400`, since only a teammate can clear that, from the dashboard. A change sends `contact.subscribed` or `contact.unsubscribed`. - `email_status` — *string*, optional — Deliverability state. You will **read** `active`, `hard_bounced`, `soft_bounced` or `complained`, but the only value you can **write** is `active`, which clears a soft bounce and resets the soft-bounce count. Email Bump maintains the rest from delivery events, so sending any other value is accepted and then ignored — there is no way to suppress an address by hand. Writing `active` on a `hard_bounced` or `complained` contact is refused with a `400`: those hold for every project in the workspace, so only a teammate can clear them, from the dashboard. Anything you leave out is untouched, and that now includes the contents of `attributes`: the keys you send are added or overwritten, and keys already on the contact that you don't mention are kept. That matters because attributes are often a record of something — when someone entered a giveaway, that they accepted the rules, which form they came from. A later update that sets `plan` has no reason to know those exist, and until this changed it erased them. To remove a key, send it as `null`: ```json { "attributes": { "plan": "pro", "trial_ends_at": null } } ``` `plan` is set, `trial_ends_at` is removed, everything else on the contact is left alone. ```bash curl -X PATCH https://emailbump.com/api/v1/contacts/5fef0867-b292-46ca-8371-e24d8575576c \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "company": "Acme Corp", "attributes": { "plan": "enterprise" } }' ``` `DELETE /v1/contacts/{id}` removes the contact and its event history, and returns `204`. It does not forget an unsubscribe, bounce or complaint: the address stays on the project's Do not email list, so adding it again later does not make it mailable. ## List & search Filter by `status` (`subscribed` / `unsubscribed` for consent, or `active` / `hard_bounced` / `soft_bounced` / `complained` for deliverability; any other value is a `400`) and `search` (email, name or company; not case-sensitive). To look one contact up by address, use `email` — an exact match that returns one contact or an empty set. URL-encode the address (a literal `+` in a query string decodes as a space). ```bash curl "https://emailbump.com/api/v1/contacts?search=jamie&status=subscribed&limit=25" \ -H "Authorization: Bearer ebk_your_key" curl "https://emailbump.com/api/v1/contacts?email=jamie%40example.com" \ -H "Authorization: Bearer ebk_your_key" ``` ## Export to CSV `GET /v1/contacts/export` answers with the whole audience as a file — `text/csv`, not JSON. It supports `status` and `search` filters, has no pagination, and streams, so a large audience starts arriving before all of it has been read. Unlike the contacts list, `status=subscribed` exports only subscribed contacts whose `email_status` is `active`. **Query parameters** - `status` — *string*, optional — `subscribed` requires both marketing consent and `email_status=active`; `unsubscribed` requires consent to be false. Other non-empty values match `email_status`, for example `hard_bounced`. On the list endpoint, `subscribed` is consent alone and does not check deliverability. - `search` — *string*, optional — Substring match on email, name or company. - `list_id` — *uuid*, optional — Only contacts on this list, and the file gains a `list_status` column — `confirmed`, `pending` (double opt-in, never clicked) or `unsubscribed` (left this list, still in your audience). - `segment_id` — *uuid*, optional — Only contacts matching this saved segment, evaluated when you ask rather than from anything cached. They combine, and they combine with each other: a list scoped to a segment scoped to a search is one file. ```bash curl "https://emailbump.com/api/v1/contacts/export?status=subscribed" \ -H "Authorization: Bearer ebk_your_key" \ -o contacts.csv # One list, everyone on it, including who never confirmed curl "https://emailbump.com/api/v1/contacts/export?list_id=5b3a0ea3-5c58-423e-92ff-0aaac7be0af3" \ -H "Authorization: Bearer ebk_your_key" \ -o newsletter.csv ``` The columns are `email`, `first_name`, `last_name`, `company`, `phone`, `country`, `city`, `timezone` and `subscribed`, then the state we maintain — `email_status`, `unsubscribed_at`, `created_at`, `id` — followed by `list_status` for a list-scoped export and custom-attribute columns. Export selects the first 200 distinct attribute keys alphabetically across the project, then excludes keys that collide with the profile or four state columns. It is not a complete attribute backup for projects above that limit. Objects and arrays are written as JSON text; strings, numbers and booleans are written plainly. Missing or null values are empty cells. > **Re-importing is not a full restore** — Email Bump recognizes the profile headers automatically; other providers may require column mapping. Automatic import skips `email_status`, `unsubscribed_at`, `created_at`, `id` and `list_status`: it does not restore delivery history or list-confirmation state. Map `email_status` to **Delivery status** in the mapping step to mark `hard_bounced` and `complained` addresses unmailable in the project you are importing into; it does not affect other projects. The `subscribed` column can change marketing consent, so retain only consent you can substantiate. Custom attributes undergo normal date, number and boolean inference; JSON objects and arrays exported as text are not reconstructed as structured values. In the dashboard the same file is **Export CSV**: on Contacts it exports what the page is showing, search box and status filter included; on a list, that list; and on the Segments row menu, that segment. ## Subscribe / unsubscribe Toggle marketing consent. Unsubscribing also sets `unsubscribed_at` and puts the address on the project's Do not email list. Subscribing lifts this project's unsubscribe from that list, so only call it on fresh, explicit consent. It is refused with a `400` for someone who marked your email as spam — only a teammate can clear that, from the dashboard — and it cannot clear a bounce, which also stays unmailable until a teammate clears it. `unsubscribed_at` and the `contact.subscribed` / `contact.unsubscribed` webhook only change when consent does, so unsubscribing someone twice keeps the time they left. ```bash curl -X POST https://emailbump.com/api/v1/contacts/5fef0867-b292-46ca-8371-e24d8575576c/unsubscribe \ -H "Authorization: Bearer ebk_your_key" ``` --- # Events API Track customer behavior to drive automations and segments. ## Endpoint - `POST /v1/events` Track behavior to power automations and segments. Identify the contact by `email` (auto-created if unknown) or `contact_id`. ## Track an event **Body parameters** - `event` — *string*, required — Event name, e.g. `Purchased`. Stored with a normalized key. - `email` — *string*, optional — Identify the contact by email (auto-created if unknown). - `contact_id` — *string*, optional — Identify the contact by id instead of email. - `properties` — *object*, optional — Arbitrary metadata (product_id, category, …). - `value` — *number*, optional — Monetary value for revenue tracking. - `currency` — *string*, optional — ISO currency code for value, e.g. usd. - `quantity` — *integer*, optional — Item quantity for the event (e.g. units purchased). - `occurred_at` — *string*, optional — ISO 8601 timestamp of when the event happened. Defaults to now. - `attribute` — *boolean*, optional — `false` records the `value` without crediting it to an email: for a value that isn't a sale (a cart, a quote), or a sale Stripe already reports. Defaults to `true`. Provide either `email` or `contact_id`. ```bash curl -X POST https://emailbump.com/api/v1/events \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "email": "jamie@example.com", "event": "Purchased", "value": 49.0, "currency": "usd", "properties": { "product": "Widget" } }' ``` ## Response ```json { "event": { "id": "0f6a9d3e-5c1b-4f7a-9e2d-8b4c1a7e3f90", "team_id": "111f9258-6b77-4edb-a9f3-14bc66118b14", "contact_id": "7c2e41a8-93d5-4b0f-a6e1-2f8d5c9b0a34", "name": "Purchased", "key": "purchased", "properties": { "product": "Widget" }, "value": 49.0, "currency": "USD", "quantity": null, "occurred_at": "2026-09-28T15:04:05+00:00", "created_at": "2026-09-28T15:04:05+00:00" }, "contact_id": "7c2e41a8-93d5-4b0f-a6e1-2f8d5c9b0a34", "attribution": { "email_event_id": "c41d8e2f-0b7a-4c96-8f13-5e2a9d6b7c01", "campaign_id": "5a9f3c1e-2d84-4b7f-9e60-a1c3d5e7f902", "flow_id": null, "node_id": null, "variant_id": null, "stream": "marketing", "touch": "click", "touched_at": "2026-09-26T09:12:44+00:00" } } ``` `attribution` is `null` when no email earned the event — it had no value, or the contact didn't click or open a campaign or automation email within the window. ## Revenue attribution An event with a `value` above zero (and no `"attribute": false`) is credited to the last campaign or automation email the contact clicked within your attribution window, or, if they clicked nothing and the project counts opens, the last one they opened. Machine opens never count, and transactional email never earns credit. The window is measured back from `occurred_at`, and is 5 days unless you change it under **Settings → Revenue attribution**. The full rules are in [Revenue attribution](/docs/stripe#attribution), and the [Revenue API](/docs/revenue-api) reads what was credited. **attribution fields** - `email_event_id` — *uuid* — The click or open that earned the credit. - `campaign_id` — *uuid | null* — The campaign the email belonged to, when it was a campaign. - `flow_id` — *uuid | null* — The automation the email belonged to, when it was one. - `node_id` — *uuid | null* — The send step within that automation. - `variant_id` — *uuid | null* — The A/B variant the contact received, when there was one. - `stream` — *string | null* — The sending stream of that email, e.g. `marketing`. - `touch` — *string* — `click` or `open`. - `touched_at` — *string* — When the click or open happened, ISO 8601. --- # Revenue API Read what your campaigns and flows earned, and set how purchases are credited to them. **Project key.** Acts in the project the key belongs to. An all-access key works too — name the project with an `X-Project-Id` header. See [Authentication](https://emailbump.com/docs/api-keys). ## Endpoints - `GET /v1/revenue` - `PATCH /v1/revenue/attribution` Revenue here is what was credited. A purchase goes to the last campaign or automation email the contact clicked within the attribution window or, if they clicked nothing and the project counts opens, the last one they opened. A purchase no email earned isn't counted. The full rules are in [Revenue attribution](/docs/stripe#attribution). ## Read revenue `GET /v1/revenue` totals what was credited over a date range, per currency, and names the campaigns and flows that earned the most. **Query parameters** - `from` — *string*, optional — First day, inclusive, as a UTC date `YYYY-MM-DD`. Defaults to 29 days before `to`, which makes 30 days. - `to` — *string*, optional — Last day, inclusive, as a UTC date `YYYY-MM-DD`. Defaults to today, and a later date is read as today. - `stream` — *string*, optional — `marketing` for campaigns or `automation` for flows. Leave it out for both. One request covers at most 366 days; a `from` further back than that is moved forward to fit. The response's `from` and `to` are the dates actually read. A date in any other format, or any other `stream`, is a `400`. ```bash curl "https://emailbump.com/api/v1/revenue?from=2026-08-30&to=2026-09-28" \ -H "Authorization: Bearer ebk_your_key" ``` ## Response ```json { "conversions": 4, "amount": 300.0, "currency": "USD", "by_currency": [ { "currency": "USD", "conversions": 3, "amount": 300.0 }, { "currency": "EUR", "conversions": 1, "amount": 40.0 } ], "leaders": [ { "kind": "campaign", "id": "5a9f3c1e-2d84-4b7f-9e60-a1c3d5e7f902", "name": "Spring sale", "currency": "USD", "conversions": 2, "amount": 198.0 }, { "kind": "flow", "id": "9b2e7d41-6c3a-4f85-b0d9-3e1a7c5f2b68", "name": "Welcome series", "currency": "USD", "conversions": 1, "amount": 102.0 }, { "kind": "flow", "id": "e4c8a2f6-1d7b-4a93-8e05-6b9f3c2d1a70", "name": "Abandoned cart", "currency": "EUR", "conversions": 1, "amount": 40.0 } ], "attribution": { "window_days": 5, "counts_opens": true }, "from": "2026-08-30", "to": "2026-09-28", "stream": null } ``` **Response fields** - `conversions` — *integer* — Purchases credited in the range, in every currency. - `amount` — *number* — The total in `currency`. Amounts are in major units — `58.0` is $58 — rounded to cents. - `currency` — *string | null* — The currency most purchases were in — not the biggest number, since ¥20,000 isn't more than $10,000. `null` when nothing was credited. - `by_currency` — *array* — Each currency's `currency`, `conversions` and `amount`, most purchases first. Currencies are never added together. - `leaders` — *array* — The ten campaigns and flows that earned the most — those in the main `currency` first, by amount, then the rest: `kind` (`campaign` or `flow`), `id`, `name`, `currency`, `conversions` and `amount`. One that earned in two currencies has a row for each. `name` is `null` once the campaign or flow has been deleted. - `attribution` — *object* — The project's rules as they are now: `window_days` and `counts_opens`. - `from`, `to` — *string* — The dates read, after defaults and limits. - `stream` — *string | null* — The stream asked for, or `null` for both. The same revenue is in the dashboard: the Revenue tile and **Top earning emails** on **Analytics**, each campaign's **Metrics** tab, and each send step of a flow. ## Attribution rules `PATCH /v1/revenue/attribution` sets the window and whether opens count — the same settings as **Settings → Revenue attribution**. A change applies to purchases from then on; revenue already credited stays where it is. **Body parameters** - `window_days` — *integer*, optional — How many days before a purchase a click or open can earn it, from 1 to 30. It is 5 until you change it. - `counts_opens` — *boolean*, optional — Whether an open can earn a purchase when nothing was clicked. On until you change it. Machine opens never count either way. Send either or both; one you leave out keeps its value. A window outside 1–30 is a `400`, and so is any other field. ```bash curl -X PATCH https://emailbump.com/api/v1/revenue/attribution \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "window_days": 7, "counts_opens": false }' ``` ```json { "attribution_window_days": 7, "attribution_counts_opens": false } ``` ## Where revenue comes from - **Your own events.** Send `POST /v1/events` with a `value` above zero and its `currency`. The response's `attribution` says which email earned it. See the [Events API](/docs/events-api). - **Stripe.** Connect the project's Stripe account and its payments are recorded as they happen and credited the same way. A subscription's routine renewal is recorded but not credited. See the [Stripe guide](/docs/stripe), or connect it from code with the [Stripe API](/docs/stripe-api). --- # Sending review API Submit a project's business and sending use case for approval, read the decision, and edit, withdraw or resubmit it. **Project key.** Acts in the project the key belongs to. An all-access key works too — name the project with an `X-Project-Id` header. See [Authentication](https://emailbump.com/docs/api-keys). ## Endpoints - `GET /v1/sending-review` - `POST /v1/sending-review` - `DELETE /v1/sending-review` Every project's mail is held until Email Bump approves its business and sending use case: campaigns, flows, the emails API and SMTP alike. Until then a send is refused with a `400` saying sending is held for review. A person reads each submission, so approval is not instant. Transactional API and SMTP sending is approved separately, in the same review, when the use case is mail customers asked for, such as receipts, password resets or support replies. The response's `transactional_enabled` says whether it was. Marketing also needs verified permission for each recipient, even once the project is approved. This is the same review as the one in the dashboard's **Settings**, so a submission made in either place shows in both. ## Read the review `GET /v1/sending-review` returns where the project's review stands: what was submitted, and the reviewer's decision once there is one. ```bash curl https://emailbump.com/api/v1/sending-review \ -H "Authorization: Bearer ebk_your_key" ``` ```json { "project_id": "3f6b2a9e-8c41-4d7a-9e15-2b7c4d9a6f30", "project_name": "SMTP Ghost", "business_name": "SMTP Ghost", "status": "changes_requested", "transactional_enabled": false, "submission": { "website": "https://smtpghost.com", "acquisition": "Recipients are only people who contacted SMTP Ghost support first ...", "use_case": "Transactional support replies only. Each email answers a message ...", "evidence_reference": "Every reply is tied to the inbound message the customer sent ...", "submitted_at": "2026-11-06T15:04:05Z" }, "decision": { "status": "changes_requested", "message": "Tell us how a chat visitor's address is confirmed before the first reply goes out.", "decided_at": "2026-11-06T18:20:11Z" }, "subscribed_contacts": 0, "verified_contacts": 0 } ``` **Response fields** - `project_id` — *string* — The project the review belongs to. - `project_name` — *string* — The project's name. - `business_name` — *string | null* — The business the project sends for. Approval is for this name: changing it puts the project back in review. `null` until it is set. - `status` — *string* — Where the review stands. See [Statuses](#statuses). - `transactional_enabled` — *boolean* — Whether transactional API and SMTP sending was approved too. Only ever true on an approved review. - `submission` — *object | null* — What was submitted: `website`, `acquisition`, `use_case`, `evidence_reference` and `submitted_at`. `null` when nothing has been submitted, or the submission was withdrawn. - `decision` — *object | null* — The reviewer's decision: `status` (`approved`, `changes_requested` or `rejected`), `message` (what the reviewer wrote to you, or `null`) and `decided_at`. Present only when `status` is one of those three; `null` while the review is waiting. - `subscribed_contacts` — *integer* — Contacts in the project who are subscribed. - `verified_contacts` — *integer* — How many of them have verified marketing permission: a confirmed opt-in through an Email Bump form, or original signup records a reviewer checked. Marketing reaches only these. The project's owners, and whoever submitted the review, are emailed when a decision is made. If you poll instead, every few minutes is plenty: a person makes the decision. ## Statuses - `not_submitted`: nothing has been submitted, or the submission was withdrawn. Sending is held. - `in_review`: submitted and waiting for a reviewer. Sending is held. You can still edit or withdraw it. - `changes_requested`: the reviewer needs more before deciding. `decision.message` says what. Edit the submission and send it again, or withdraw it. Nothing more is decided until you send it again. - `approved`: the project may send, within normal limits and checks. Transactional API and SMTP sending also needs `transactional_enabled`. - `rejected`: not approved. `decision.message` says why. You can change the submission and send it again, but not withdraw it: a rejection stays until a new submission replaces it. ## Submit, edit or resubmit `POST /v1/sending-review` submits the review. The same call edits a submission that is still in review, and resubmits one after `changes_requested` or `rejected`. It always replaces the whole submission and puts it back in review, so send every field each time. Sending the same request again while it is in review changes nothing, so a retry is safe. Staff are emailed when it arrives. The account's email address must be confirmed first. Renaming the project's business (in Settings, or with `PATCH /v1/projects/{project_id}`) sends an approved or waiting review back to `not_submitted`, because it was about the old name. Submit again under the new one. A rejection or a request for changes stays as it is. **Body parameters** - `website` — *string*, required — The business's website, as an `https://` URL. 8 to 500 characters. - `acquisition` — *string*, required — How each audience gave permission to be emailed: your signup forms, a checkout opt-in, people who contacted you first. Name every imported audience and where it came from. 30 to 4,000 characters. - `use_case` — *string*, required — The messages you will send and the customer actions that trigger them. Describe transactional mail here too, such as which action sends a receipt or a reply. 30 to 4,000 characters. - `evidence_reference` — *string*, required — Where the original permission or trigger records are kept, so a reviewer can check them. Never include passwords or access keys. 10 to 2,000 characters. - `no_cold_outreach` — *boolean*, required — Must be `true`: you will send only to people who asked for mail from this business, and never to purchased, rented, scraped or third-party lists. - `business_name` — *string*, optional — The business the project sends for. Needed only if the project has no business name yet, in which case it is saved. If the project already has a different name, the request is a `409`. See [Errors](#errors). Here a support tool asks for approval to send transactional replies only: ```bash curl -X POST https://emailbump.com/api/v1/sending-review \ -H "Authorization: Bearer ebk_your_key" \ -H "Content-Type: application/json" \ -d '{ "website": "https://smtpghost.com", "acquisition": "Recipients are only people who contacted SMTP Ghost support first: through the support chat on smtpghost.com (they enter their email to get a reply, or are signed-in SMTP Ghost customers) or by emailing our support address. No lists, no imports.", "use_case": "Transactional support replies only. Each email answers a message the recipient just sent us in the support chat or by email, and goes to that one person with Reply-To set to their conversation address on inbox.smtpghost.com. Also internal new-support-message alerts to our own support@smtpghost.com. No marketing, no campaigns, no bulk sends.", "evidence_reference": "Every reply is tied to the inbound message the customer sent, stored in the SMTP Ghost support inbox (smtpghost.com/support_inbox).", "no_cold_outreach": true }' ``` ```json { "project_id": "3f6b2a9e-8c41-4d7a-9e15-2b7c4d9a6f30", "project_name": "SMTP Ghost", "business_name": "SMTP Ghost", "status": "in_review", "transactional_enabled": false, "submission": { "website": "https://smtpghost.com", "acquisition": "Recipients are only people who contacted SMTP Ghost support first ...", "use_case": "Transactional support replies only. Each email answers a message ...", "evidence_reference": "Every reply is tied to the inbound message the customer sent ...", "submitted_at": "2026-11-06T15:04:05Z" }, "decision": null, "subscribed_contacts": 0, "verified_contacts": 0 } ``` An approved review can't be edited here, because editing it would hold the project's mail again until it is reviewed. To change an approved review, email [support@emailbump.com](mailto:support@emailbump.com). ## Withdraw a submission `DELETE /v1/sending-review` withdraws the submission. The review goes back to `not_submitted` and the response is the same object as `GET`. Withdrawing one that is already withdrawn, or was never submitted, succeeds and changes nothing. An approved or rejected review can't be withdrawn, and the request is a `409`. Send a new submission to replace a rejection. ```bash curl -X DELETE https://emailbump.com/api/v1/sending-review \ -H "Authorization: Bearer ebk_your_key" ``` ## Errors - `400`: a field is missing or outside its length, `website` isn't an `https://` URL, `no_cold_outreach` isn't `true`, the project has no business name and none was sent, or the account's email address isn't confirmed yet. - `409`: the review is approved. Editing or withdrawing it would hold sending again, so contact support to change it. - `409`: withdrawing a rejected review. Submit again instead. - `409`: `business_name` differs from the project's name. Renaming the business puts the project back in review and revokes the recipient permission recorded for it, so it is never done as a side effect. Change it in **Settings**, or with `PATCH /v1/projects/{project_id}` on the [Projects API](/docs/projects-api), then submit. Each error is `{ "error": "..." }` with a message that says what to fix. See the [API overview](/docs/api-reference#errors). --- # Campaigns API Create marketing campaigns and send now or schedule for later. Marketing delivery requires your own verified sending domain and a company name, street address, city and country in Project settings. The sender name identifies that business, matching the footer. A campaign with missing details is paused; a flow holds its send step until the details are complete. Shared-domain previews identify Email Bump as their sender. ## Endpoints - `GET /v1/campaigns` - `POST /v1/campaigns` - `GET /v1/campaigns/{id}` - `PATCH /v1/campaigns/{id}` - `DELETE /v1/campaigns/{id}` - `POST /v1/campaigns/{id}/send` - `POST /v1/campaigns/{id}/variants` - `PATCH|DELETE /v1/campaigns/{id}/variants/{variant_id}` - `GET /v1/campaigns/{id}/ab` - `POST /v1/campaigns/{id}/ab/winner` ## Create a campaign A campaign is one marketing email. Pick an audience — a list, a segment, or a single contact for a one-off email — and content from raw `html` or a saved template. **Body parameters** - `name` — *string*, required — Internal name for the campaign. - `subject` — *string*, optional — Subject line (personalizable). Falls back to the template's subject if a `template_id` is given. - `list_id` — *string*, optional — Audience: send to every subscribed contact on this list. - `segment_id` — *string*, optional — Audience: send to contacts matching this segment (evaluated live). - `contact_id` — *string*, optional — Audience: send to a single contact — a one-off marketing email. - `html` — *string*, optional — Content: your HTML email. Inline CSS and `