Skip to main content
Languages: every operation supports cURL, Node.js (TypeScript), Python, Go, Ruby, and PHP. The first 15 operations on this page show all six languages; the remaining 31 show cURL and TypeScript — the two most-used.

Email API

Email endpoints exposed by the Devotel CPaaS API Base path: /api/v1/email Endpoint count: 44

title: “Worked email lifecycle samples” description: “Worked request and response samples for the email senders lifecycle: register a sender, verify the domain’s DNS records, run a test-send, manage suppressions, and validate recipients.”

Worked email lifecycle samples

Copy a request as written, substitute your own ids, and compare the response envelope. Errors follow Devotel Orbit’s { error, meta } envelope and carry a request_id in meta you quote when reporting. The sender chain: register a sender → publish the domain’s DNS records → run a test-send → keep suppressions clean.

1. Register a sender

POST /api/v1/email/senders
Request
The domain is registered with the sending provider, which issues real SPF/DKIM records — publish them with your DNS provider, then verify with the DNS-status read below before the sender can send. Omit default_from_email to send as noreply@<domain>.

2. Update the sender’s defaults

PUT /api/v1/email/senders/{senderId}
Request
PUT replaces the From/Reply-To defaults — pass every field you want to keep. Promoting back to default uses the dedicated endpoint below (flipping isDefault: false here is a no-op).

3. Promote a sender to the org default

POST /api/v1/email/senders/{senderId}/set-default
The compose dropdown fills with this sender first; the previous default is demoted. Deleting a sender (DELETE /api/v1/email/senders/{senderId}) removes it from the dropdown and accepts no body.

4. Check the domain’s DNS records

GET /api/v1/email/domains/{domainId}/dns-status
Request
Each record renders a traffic light (valid / warning / invalid / unknown); overallStatus is the worst of them. Compare recordExpected against recordActual to see what your DNS provider is missing. Pass ?refresh=true to re-verify at the provider, not just at DNS. GET /dns-history?days=30 returns the same id with an entries array of dated record snapshots so you can trace propagation.

5. Run a test-send and poll the result

POST /api/v1/email/domains/{domainId}/test-send
Poll GET /api/v1/email/domains/{domainId}/test-send/{testId}/result with the returned testId:
Until the proof lands the result endpoint returns 404 (retry — it usually settles within a minute). estimated: true means the spamScore is a provisional estimate from the domain’s DNS grid, not the measured receiver verdict. GET /inbox-placement?days=30 aggregates delivered proofs into an inbox/spam/promotions breakdown with an inboxRate percentage.

6. Validate recipient addresses

POST /api/v1/email/validate
Request
Check addresses before a campaign or import. suggestion carries the corrected domain on mistyped common domains (e.g. gamil.com → gmail.com). For batch checks, POST /api/v1/email/validate/bulk: Request
Each address reports deliverable, mailbox_full / undeliverable, mailbox_disabled, spamtrap, potential, invalid_mx, no_mx, or syntax_failure. The bulk form returns a results map plus the invalidAddresses list so you don’t have to cross-check every entry.

7. Manage the suppression list

POST /api/v1/email/suppressions
Request
Suppressed addresses never receive sends — the send path rejects them before they reach the provider. Manual reason accepts manual, unsubscribe, complaint, or hard_bounce; bounce/automatic entries (collector handles them) carry the machine reasons. Repeat an add and it returns 200 with the existing entry rather than 201. Bulk-import (POST /api/v1/email/suppressions/bulk-import) accepts either CSV text (one address per line, optional email header row tolerated) or an emails array: Request
imported counts newly-added entries; skipped counts duplicates already on the list; invalid counts malformed addresses dropped. GET /api/v1/email/suppressions pages the list (?limit=&offset=&search=&reason=):
Remove an entry with DELETE /api/v1/email/suppressions/{id} (returns { "ok": true }). GET /api/v1/email/suppressions/reputation?days=30 reports a suppression-rate breakdown by reason over trailing send volume — the number a deliverability review quotes.

8. Poll readiness and DNS, then promote to default

Once the DNS records publish (step 4), poll until the records show valid and then promote the sender to the org default. The Node.js escape hatch — the SDK is generated from this same OpenAPI contract, so a typed client covers it; raw fetch is fine too:
refresh=true re-verifies at the provider, not just at DNS — pass it when you just published the records. The promote call accepts no body; steps 3–5 above show the shapes.

Warmup, dedicated IP, TLS reports, and inbound routing (advanced)

These complete the sender’s onboard checklist; most tenants never need them. POST /api/v1/email/inbound-routes registers an inbound subdomain→destination mapping (webhook): Request
GET /api/v1/email/warmup-plan returns the day-by-day ramp for your ?targetDailyVolume=:
GET /api/v1/email/warmup-status adds what you have actually sent (sent.totalSent, the live-day current.maxAllowed, and reputation). GET /api/v1/email/warmup-enforcement answers “which batches get sent when the pattern doesn’t match a plan day” for a requested batch.

Dedicated sending — eligibility, request, status

Check eligibility (GET /api/v1/email/dedicated-sending/eligibility) against your actual trailing-30-day volume, submit a free-text request, then read back the server-authoritative status (GET /api/v1/email/dedicated-sending):
Eligibility read (eligibility is also nested inside GET /dedicated-sending):
Status read after submitting POST /dedicated-sending/request with a justification note:
eligibility.monthlySendVolume comes from real send history, not a client estimate — the request is rejected 403 below the ~50k/month bar, and re-submitting a pending request returns the existing record.

TLS-report and Postmaster reputation reads

Two stateless analysis routes fold the aggregate reports mailbox providers mail (TLS-RPT) and the per-delivery reputation Google / feedback loops expose (Postmaster) into one tenant-side readout — no persistence, no quota to the provider. TLS-RPT — POST /api/v1/email/tls-rpt/reports/analyze (base64-encode the report body you receive, or publish the _smtp._tls.<domain> record providers attach as application/tlsrpt+gzip):
Postmaster — POST /api/v1/email/postmaster/reputation/analyze (POST the payloads a tenant’s scheduled connector fetches from Google Postmaster Tools and your configured feedback loops — we deliberately do not pull from Google directly, so the route stays read-through):
Malformed records are skipped and counted in skipped, never thrown — a corrupt attachment or a single bad snapshot never sinks the batch.

See also


Get dedicated sending status

GET /api/v1/email/dedicated-sending
Retrieve the organization’s dedicated sending IP status based on actual trailing-30-day email volume. Returns eligibility status, current request status (pending, approved, etc.), and provisioning details. Server-authoritative; uses real send volume from the messages table, not client-supplied estimates. Requires owner or admin role.

Check dedicated IP eligibility

GET /api/v1/email/dedicated-sending/eligibility
Assess whether the organization qualifies for a dedicated sending IP based on projected monthly send volume (~50k/month threshold). Returns eligibility status and a recommended IP-warmup ramp if eligible. Pure computation with no IP provisioning or billing changes. Requires owner or admin role.

List sending domains

GET /api/v1/email/domains
List every sending domain your organization can use — the platform default plus your configured and registered sender domains. Returns the domain ids accepted by every per-domain endpoint (DNS status, DNS history, inbox placement, BIMI, test send); call this first to discover ids before drilling into a single domain. Read-only: no DNS lookup, no provider call. Requires owner or admin role.

Read one email sending domain

GET /api/v1/email/domains/{domainId}
Read a single sending domain’s descriptor — the same { id, domain, isDefault } entry the collection root GET /email/domains lists — so a REST consumer that listed the collection and then GETs one domain by id resolves it through the same resolveDomain path every per-domain deliverability sub-resource shares, and the two endpoints never disagree on the descriptor. Use it to confirm an id before wiring dns-status, dns-history, or the test-send flows against it. Unknown ids return DOMAIN_NOT_FOUND 404 (never Fastify’s opaque not-found); the literal id default always resolves to the Devotel-managed platform sending domain. Read-only: tenant config is the only input — no DNS lookup, no provider call, no write. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Get domain DNS verification history

GET /api/v1/email/domains/{domainId}/dns-history
Retrieve the historical DNS verification record snapshots for a sending domain over the past N days (default 30). Shows when records were added, verified, or failed. Useful for debugging DNS propagation and troubleshooting verification issues. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Check domain DNS records

GET /api/v1/email/domains/{domainId}/dns-status
Verify the SPF, DKIM, and DMARC DNS records for a sending domain. Returns a traffic-light status (verified, partial, or failed) for each record. Pass refresh=true to trigger a provider re-verification and update Resend’s domain status. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Get domain inbox placement rate

GET /api/v1/email/domains/{domainId}/inbox-placement
Aggregate inbox placement statistics for a sending domain over the past N days (default 30). Shows the percentage of test emails delivered to inbox vs. spam/promotions folders across major ISPs. Computed from delivered test-send proofs. Returns zeros for domains with no test history. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Get test email send result

GET /api/v1/email/domains/{domainId}/test-send/{testId}/result
Retrieve the delivery and spam-scoring results from a test email send. Shows which ISPs delivered to inbox vs. spam, SPF/DKIM/DMARC authentication results, and an estimated spam score. Returns 404 if the test has not yet completed or been delivered. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.
string
required
—

List inbound email routes

GET /api/v1/email/inbound-routes
Retrieve all configured inbound email routes for the authenticated organization. Routes match incoming messages against recipient patterns and forward parsed email as JSON to a destination webhook. Signing secrets are masked in responses. Requires owner or admin role.

List email senders

GET /api/v1/email/senders
Return every email sender registered for the calling organization: domain, default From: address/name, Reply-To, the isDefault flag, and the sending-stream assignment. Use this to populate the compose dropdown and the Senders settings table. Includes the legacy esend_legacy_&lt;slug&gt; row when the org still uses a flat channels domain. Requires owner or admin role.

Get one email sender

GET /api/v1/email/senders/{senderId}
Retrieve a single email sender by id — including the legacy esend_legacy_&lt;slug&gt; ids the list endpoint advertises. Use it to fetch the sender’s domain, from-fields, and stream assignment before editing. Returns 404 when the id does not exist for the organization. Requires owner or admin role.
string
required
Sender id (esend_… or esend_legacy_&lt;slug&gt;).

List email sending streams

GET /api/v1/email/streams
Return every sending stream registered for the calling organization: id (estream_…), name, reputation kind (transactional | marketing | custom), free-text description, the per-stream throttle ceilings (maxPerMinute / dailyQuota, null = no per-stream cap), the isDefault flag, and createdAt. Use it to populate the stream dropdown on sender assignment and the streams settings table. Requires owner or admin role.

List suppressed email addresses

GET /api/v1/email/suppressions
Page the tenant suppression list — addresses the platform will no longer send to, because of a bounce, complaint, unsubscribe, or manual block. Supports limit / offset pagination plus search and reason filters. Use it to audit why email to an address stopped and to decide which entry to remove. Requires owner or admin role.
integer
Page size (default 50, max 200). Coerced number falls back to the default on a malformed value.
integer
Zero-based row offset for pagination.
Substring filter on the suppressed address.
string
Filter by suppression reason (bounce, complaint, unsubscribe, manual).

Export suppression list as CSV

GET /api/v1/email/suppressions/export
Download the full tenant suppression list as an RFC 4180 CSV (headers email, reason, bounce_type, added_at, expires_at). Use it to reconcile the blocklist against an external system or take an offline snapshot. Requires owner or admin role.

Get sender-reputation summary

GET /api/v1/email/suppressions/reputation
Aggregate bounce and complaint counts for the tenant’s email sends over the lookback window (default last 30 days, configurable via days, max 90). Use it to spot deliverability regressions — a rising hard-bounce or complaint rate directly degrades sender reputation. Requires owner or admin role.
integer
Lookback window in days (default 30, max 90).

One-click email unsubscribe

Need this flow in Python, Go, Ruby, or PHP? The Worked sequences section renders this surface’s hero flows in the full six-language group.
GET /api/v1/email/unsubscribe/{token}
Public List-Unsubscribe endpoint. Verifies the HMAC-signed token embedded in every outbound email’s List-Unsubscribe URL, records the recipient address on the tenant suppression list (idempotent), then either 302-redirects to the organization’s configured unsubscribe page or renders a minimal HTML confirmation. POST is the RFC 8058 one-click method (mailbox gateways POST without a body); GET is the human-click fallback. Invalid, expired, or tampered tokens return an HTTP 400 HTML error page.
string
required
HMAC-signed token binding tenant, message id, and recipient address; minted into the message’s List-Unsubscribe URL at send time.

Check batch send against warmup headroom

GET /api/v1/email/warmup-enforcement
Split a proposed send batch against today’s live (feedback-adjusted) IP-warmup headroom into an allow / partial / block verdict — how many emails may go today, how many are deferred, and when headroom reopens. The operator supplies the steady-state targetDailyVolume plus the requested batch size; startingVolume / growthFactor are optional ramp-tuning knobs identical to /warmup-plan. Read-only: the verdict only ever withholds volume above today’s ceiling, it never authorises a send. Requires owner or admin role.
integer
required
Steady-state daily volume the warmup ramp aims toward (1-10M/day). Required.
integer
required
Batch size the caller wants to send now. Required.
integer
Optional custom day-one daily cap (same knob as /warmup-plan).
number
Optional daily-growth multiplier (1.05-4; default ~1.5).

Get IP warmup ramp plan

GET /api/v1/email/warmup-plan
Generate the day-by-day send-volume cap schedule that builds sending reputation up to a steady-state target daily volume. Use it to plan a deliberate ramp before raising send volume on a cold IP or domain; startingVolume and growthFactor are optional tuning knobs. Pure computation — no email is sent and nothing is provisioned.
integer
required
Steady-state daily volume the warmup ramp aims toward (1-10M/day). Required.
integer
Optional custom day-one daily cap (overrides the default curve start).
number
Optional daily-growth multiplier applied day over day (1.05-4; default ~1.5).

Get live IP warmup status

GET /api/v1/email/warmup-status
Report where the workspace currently sits on its IP-warmup ramp: the ramp day anchored to the first recorded outbound send, today’s recommended cap, the volume already sent today, the remaining headroom, and whether sending is still within the ramp. Live sending reputation (recent delivery and spam-complaint rates) can lower today’s ceiling while reputation recovers. Use it to decide how much volume is safe to send right now.
integer
required
Steady-state daily volume the warmup ramp aims toward (1-10M/day). Required.
integer
Optional custom day-one daily cap (same knob as /warmup-plan).
number
Optional daily-growth multiplier (1.05-4; default ~1.5).

Request a dedicated sending IP

POST /api/v1/email/dedicated-sending/request
Submit a request for a dedicated sending IP. The organization must send >50k emails/month to qualify (verified against actual trailing-30-day volume). The request is recorded and fulfilled out-of-band by Devotel; no IP is provisioned immediately. Idempotent; re-submitting the same request returns the status unchanged. Requires owner or admin role.

Analyze DMARC aggregate reports

POST /api/v1/email/dmarc/reports/analyze
Decode and fold one or more DMARC aggregate (RUA) reports — raw XML, base64 XML, or the base64 gzip streams mailbox providers mail as application/gzip — into the unified deliverability summary plus the none→quarantine→reject policy recommendation. Body: reports[] (1-20 payloads, each content up to 1 MiB with encoding utf8/base64/gzip) and an optional topSpoofingSources bound (1-200, default 50) on the ranked spoofing-source list. Use it from a tenant-run cron or connector that fetches the published RUA mailbox to feed the panel the SPF/DKIM alignment pass rates, applied dispositions, and the ranked DMARC-failing sources the RECEIVING providers see. Corrupt payloads are skipped, never 422 the batch. Stateless (nothing is persisted; response is a computed analysis). Requires owner or admin role.

POST /api/v1/email/domains/{domainId}/bimi
Set up BIMI (Brand Indicators for Message Identification) to display your brand logo next to emails in compatible mail clients. Supply logo URL and optional VMC (Verified Mark Certificate) URL. Validates the configuration against DNS records and DMARC requirements. Requires DMARC policy enforcement and owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Auto-configure cloudflare

POST /api/v1/email/domains/{domainId}/cloudflare/auto-configure
string
required
Obtain from GET /api/v1/domains on the page.

Run the MTA-STS + TLS-RPT setup wizard

POST /api/v1/email/domains/{domainId}/mta-sts
Generate the v=STSv1; … MTA-STS TXT record plus the HTTPS policy-file body, and the v=TLSRPTv1; … aggregate-reporting record, from the wizard’s mode / MX-hosts / policy-id / report-address inputs, and validate whatever is currently published at _mta-sts.&lt;domain&gt; / _smtp._tls.&lt;domain&gt; — the final member of the SPF/DKIM/DMARC/BIMI transport-security set. Body is all-optional: an empty body just validates the live records; supplying mode (enforce|testing|none), mxHosts, policyId, maxAgeSeconds, and ruaDestinations also generates the records to publish. POST (not GET) only because the wizard inputs arrive as a body — the call is read-only, DNS lookups only, nothing is persisted. Unknown domain id returns 404. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Kick provider domain re-verification

POST /api/v1/email/domains/{domainId}/provider-verify
Ask the email sending provider (Resend) to re-verify a sending domain now. The DNS check can be green while the provider’s own asynchronous verification is still pending — this triggers that verification and returns the provider’s live status (verified, pending, or failed, plus region). No-op for the platform-default domain, which Orbit manages. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Initiate a test email send

POST /api/v1/email/domains/{domainId}/test-send
Start a test email send for a domain to verify delivery and measure inbox placement across major ISPs. The test email is signed with a generic orbittest.devotel.io DKIM key (not your domain’s key). Returns immediately with a test ID; poll the result endpoint to retrieve delivery and spam scoring details. Requires owner or admin role.
string
required
Obtain from GET /api/v1/domains on the page.

Register an inbound email route

POST /api/v1/email/inbound-routes
Create a new inbound email route that matches incoming messages by recipient pattern and forwards the parsed email payload to a destination webhook URL. The route is assigned a unique signing secret, returned once at creation. Requires owner or admin role.

Analyze Google Postmaster Tools + feedback-loop reputation data

POST /api/v1/email/postmaster/reputation/analyze
Fold mailbox-provider reputation payloads into a single readout — google is an array of Google Postmaster Tools daily TrafficStats snapshots (≤200 records: domainReputation, ipReputation, user-reported spam ratio, SPF/DKIM/DMARC success ratios, delivery-error breakdown) and feedback an array of feedback-loop complaint records (Yahoo / Microsoft / AOL; ≤200); at least one record is required (422 otherwise). Use it from a tenant-run cron or connector that pulls the Postmaster Tools API + FBL mailbox and feeds the deliverability panel what the RECEIVING providers actually report — the platform-computed orbittest-probe score never saw any of that. Stateless (nothing is persisted); the response is a computed analysis. Requires owner or admin role.

Create an email sender

POST /api/v1/email/senders
Register a new email sender on a verified sending domain — body: domain (already verified for the org), optional default_from_email / default_from_name / default_reply_to, optional isDefault, and an optional streamId assignment. The effective sending identity is the from-address: the explicit default_from_email, or the synthesised noreply@&lt;domain&gt; when omitted — a duplicate identity (or an explicit from-address whose host is not this sender’s own domain) returns a 4xx rather than persisting a sender the gateway would reject. Use it from the Senders settings form; 201 with the created row. Requires owner or admin role.

Promote a sender to the org default

POST /api/v1/email/senders/{senderId}/set-default
Promote one existing sender to the organization’s default sender — exactly one sender carries the flag, so this call moves isDefault onto and clears it on the previous default (a demotion is never a standalone operation; defaults move forward only). Use it when a brand line becomes the primary From: shown in the compose dropdown; unknown sender id returns 404. Requires owner or admin role.
string
required
—

Create an email sending stream

POST /api/v1/email/streams
Create a named sending stream that scopes a per-brand reputation + throttle partition: name (80 chars), kind (transactional | marketing | custom, default transactional), optional description (280 chars), an optional throttle (maxPerMinute, dailyQuota, both bounded at 1e9), and an optional isDefault flag that promotes the new stream in the same call. High-volume senders split by reputation class first so a campaign spike on the marketing stream cannot starve transactional delivery. Requires owner or admin role. The route declares its real 201 success in streams.controller.ts (an OPERATION_DOC_PINS response2xx* pair would only ever net-add a duplicate status, so the doc lives route-side).

Promote a stream to the org default

POST /api/v1/email/streams/{streamId}/set-default
Promote one existing stream to the org’s default delivery stream — every send without an explicit streamId resolves to this stream (the isDefault fallthrough picks it). Exactly one stream carries the default flag, so this call moves the flag to and clears it on the previous default. Use it when a brand line becomes the primary sender; unknown id returns 404. Requires owner or admin role.
string
required
—

Add an email suppression

POST /api/v1/email/suppressions
Add one address to the tenant suppression list — sends to it stop immediately (the send path skips a suppressed address). Body: email (3–254 chars) and an optional reason from the manual-write set (manual default, unsubscribe, complaint, hard_bounce). The write is idempotent — a re-add of an already-suppressed address returns the existing entry with HTTP 200 instead of creating a duplicate row (201 only on the first add, declared route-side in suppressions.controller.ts). Requires owner or admin role.

Bulk-import email suppressions

POST /api/v1/email/suppressions/bulk-import
Import many addresses into the tenant suppression list in one call — either a raw csv string (1 MiB cap, one address per line, optional RFC 4180 header row) or an explicit emails array (≤20,000 entries, each ≤254 chars), plus a reason from the manual-write set applied to every row (manual default). Use it to flush a SendGrid/Mailgun export or a DNC list; per-row invalid addresses are counted and skipped, never 422 the whole import. Rows beyond the address cap are truncated by the service (logged, not silent). Requires owner or admin role.

Analyze TLS-RPT aggregate reports

POST /api/v1/email/tls-rpt/reports/analyze
Decode and fold one or more MTA-STS/TLS-RPT aggregate reports — raw JSON, base64 JSON, or the base64 gzip streams providers mail as application/tlsrpt+gzip — into the TLS negotiation success rate plus the ranked, downgrade/interception-flagged failure breakdown mailbox providers periodically send to your _smtp._tls.&lt;domain&gt; rua= address. Use it after POST /domains/:domainId/mta-sts publishes the TLS-RPT policy so report collection actually pays off. Stateless (no persistence); body caps at 20 reports / 1 MiB per payload, optional topFailureTypes bounds the ranked failure list (1-200). Corrupt payloads are skipped, never 422 the batch. Requires owner or admin role.

One-click email unsubscribe

POST /api/v1/email/unsubscribe/{token}
Public List-Unsubscribe endpoint. Verifies the HMAC-signed token embedded in every outbound email’s List-Unsubscribe URL, records the recipient address on the tenant suppression list (idempotent), then either 302-redirects to the organization’s configured unsubscribe page or renders a minimal HTML confirmation. POST is the RFC 8058 one-click method (mailbox gateways POST without a body); GET is the human-click fallback. Invalid, expired, or tampered tokens return an HTTP 400 HTML error page.
string
required
HMAC-signed token binding tenant, message id, and recipient address; minted into the message’s List-Unsubscribe URL at send time.

Validate a recipient email address

POST /api/v1/email/validate
Score a single recipient email address before you send to it (SendGrid Email Validation parity). Checks syntax, MX resolution, disposable-domain and role-based-mailbox signals, computes a likely-typo correction, and folds everything into an aggregate 0–1 risk score with a coarse risk band — pure DNS + heuristics, no SMTP mailbox probing and no third-party feed. Use it to scrub one recipient row at a time as a user types or pastes; use POST /api/v1/email/validate/bulk to scrub a whole list in one call. The address is never persisted (transient validation only). Owner / admin only; an invalid body returns 422 and an unexpected validator failure returns 500.
any
Recipient address to validate — 3 to 254 characters (required).

Bulk-validate recipient email addresses

POST /api/v1/email/validate/bulk
Score a list of recipient email addresses in one call before you import a contact list or launch a campaign. Each address is checked for syntax, MX resolution, disposable-domain and role-account signals, and a likely-typo correction, then rolled into a per-row verdict plus an aggregate summary (total, valid, invalid, risky). Accepts up to 1,000 addresses per call (de-duplicated case-insensitively), runs the MX fan-out behind a concurrency cap, and meters one usage event per call with quantity = distinct addresses validated (sandbox traffic is never metered). Use it to surface undeliverable or risky rows pre-import; use POST /api/v1/email/validate for a single address. Recipient addresses are never persisted. Invalid bodies return 422.
any
Address list to validate — 1 to 1,000 entries, each 3–254 characters. De-duplicated case-insensitively before validation; one result row per distinct address, input order preserved (required).

Update an email sender

PUT /api/v1/email/senders/{senderId}
Patch a sender’s editable fields — default_from_email (must keep its host on this sender’s immutable domain), default_from_name, default_reply_to, and the streamId assignment (explicit null clears it; a non-null id must resolve to a real stream). The domain itself is immutable — changing it invalidates the DNS records and deliverability history, so delete + re-create instead. isDefault: true here is equivalent to POST /email/senders//set-default; isDefault: false is a no-op (exactly-one-default means demotion happens by promoting another row). Unknown sender id returns 404. Requires owner or admin role.
string
required
—

Update an email sending stream

PUT /api/v1/email/streams/{streamId}
Patch a stream’s operator-visible fields — name (80 chars), kind (transactional | marketing | custom), description (280 chars, empty string clears), and the throttle maxPerMinute/dailyQuota ceilings (omitting throttle preserves the existing policy; an empty object clears both ceilings, free-text null per ceiling means no stream-specific cap). Setting isDefault: true is equivalent to POST /email/streams//set-default; isDefault: false is a no-op — defaults move forward only. Unknown stream id returns 404. Requires owner or admin role.
string
required
—

Delete an inbound email route

DELETE /api/v1/email/inbound-routes/{routeId}
Remove an inbound email route from the organization. The route will no longer match or forward incoming emails. Returns success when the route is deleted. Requires owner or admin role.
string
required
—

Delete an email sender

DELETE /api/v1/email/senders/{senderId}
Remove an email sender — the row’s DNS-verified domain and deliverability history are unaffected, only the sender entry is removed. Deleting the current default is allowed when other senders remain: the most-recently-created row is promoted so the exactly-one-default invariant survives. Deleting the LAST sender is allowed too; it clears the verified-sender list and the legacy flat email.domain so a stale custom domain stops resolving on the send path. Use it when a from-address or brand line is retired; unknown sender id returns 404. Requires owner or admin role.
string
required
—

Delete an email sending stream

DELETE /api/v1/email/streams/{streamId}
Remove an email sending stream — the per-brand reputation partition is torn down along with its throttle policy, and the stream’s senders and delivery history survive. When the deleted stream was the org default, the exactly-one-default invariant promotes the next stream so the org never loses a fallback. Use it when a brand line is retired; unknown stream id returns 404. Requires owner or admin role.
string
required
—

Remove an email suppression

DELETE /api/v1/email/suppressions/{id}
Delete one suppression entry by id from the tenant blocklist — the address becomes deliverable again on the next send attempt (this is the re-enable-write a GDPR-unsubscribed-then-reconsented recipient or a previously hard-bounced address needs). It is the inverse of POST /email/suppressions and never deletes a hard-bounce suppression the provider re-added server-side — re-adding the address after a still-active bounce loop can freeze the org’s sender reputation. Unknown id returns 404. Requires owner or admin role.
string
required
—

Worked sequences

The page above trims every operation past the fifteenth to cURL plus TypeScript. This section renders the first hero flow(s) past the cut in the full six-language group, so the operation a pipeline reaches next is copy-paste complete.

One-click email unsubscribe

Check batch send against warmup headroom