# ScopedPost API — full reference Transactional email your agents can't abuse — every send scoped, capped, and logged for a year, at one flat price. Resend-compatible where it matters; the ScopedPost extensions (agents, scoped keys, approvals, inbound) are the rest of this document. API version 0.1.0. Generated from the implementation; see docs/openapi.json for the machine-readable contract. ## Endpoints ### GET /api/approvals/{token} GET approvals token Authenticated by a single-use signed token in the URL or request body. ### POST /api/approvals/{token} POST approvals token Authenticated by a single-use signed token in the URL or request body. ### GET /api/unsubscribe GET unsubscribe Authenticated by a single-use signed token in the URL or request body. ### POST /api/unsubscribe POST unsubscribe Authenticated by a single-use signed token in the URL or request body. ### POST /api/auth/invites/accept POST auth invites accept Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/auth/login POST auth login No authentication. ### POST /api/auth/logout POST auth logout Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/auth/me GET auth me Requires a signed-in dashboard session. Auth: SessionAuth. ### PATCH /api/auth/me PATCH auth me Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/auth/mfa POST auth mfa Authenticated by a single-use signed token in the URL or request body. ### POST /api/auth/mfa/recovery-codes POST auth mfa recovery-codes Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/auth/mfa/setup POST auth mfa setup Requires a signed-in dashboard session. Auth: SessionAuth. ### DELETE /api/auth/mfa/setup DELETE auth mfa setup Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/auth/mfa/setup/confirm POST auth mfa setup confirm Authenticated by a single-use signed token in the URL or request body. ### POST /api/auth/resend-verification POST auth resend-verification No authentication. ### POST /api/auth/signup POST auth signup No authentication. ### GET /api/auth/verify GET auth verify Authenticated by a single-use signed token in the URL or request body. ### GET /api/auth/sso/{teamId}/start GET auth sso teamId start No authentication. ### GET /api/auth/sso/callback GET auth sso callback No authentication. ### GET /api/auth/sso/{teamId}/saml/start GET auth sso teamId saml start No authentication. ### POST /api/auth/sso/saml/callback POST auth sso saml callback No authentication. ### GET /api/billing/account GET billing account Requires a signed-in dashboard session. Auth: SessionAuth. ### PATCH /api/billing/account PATCH billing account Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/billing/checkout POST billing checkout Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/billing/invoices GET billing invoices Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/billing/offers GET billing offers Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/billing/offers POST billing offers Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/billing/referrals GET billing referrals Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/billing/referrals POST billing referrals Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/billing/referrals/claim POST billing referrals claim Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/billing/webhook POST billing webhook Provider-signed webhook — the caller must present the provider's signature. ### GET /api/domains List domains Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/domains Register a sending domain Returns the SPF / DKIM / DMARC / MAIL FROM records to publish. A domain must be verified (SPF + DKIM + DMARC + alignment) before it can send. Auth: ApiKeyAuth. ### GET /api/domains/{id} GET domains id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### DELETE /api/domains/{id} DELETE domains id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/domains/{id}/checks GET domains id checks Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/domains/{id}/checks/run POST domains id checks run Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/domains/{id}/verify POST domains id verify Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/emails Send an email Resend-compatible send. Accepts durably and returns 202 with a message id — the send itself is queued, never synchronous. Idempotency-Key (24h) replays the same payload and 409s on a different one. Every send passes the policy engine (scope, allowlist, caps, approval, suppression, breaker) before it is accepted. Auth: ApiKeyAuth. ### GET /api/emails List sent emails Messages for the team, newest first, from the message projection (status derived from events; terminal states are sticky). Auth: ApiKeyAuth. ### GET /api/emails/{id} Get one email Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/emails/{id}/cancel POST emails id cancel Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/emails/batch Send a batch of emails Per-item results with partial failure; up to 1,000 messages per request on Growth and above. Each item carries its own idempotency key. Auth: ApiKeyAuth. ### POST /api/exports POST exports Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/exports GET exports Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/exports/{id} GET exports id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### DELETE /api/exports/{id} DELETE exports id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/exports/{id}/download GET exports id download Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/activity Unified activity timeline One feed across sends, approvals, policy decisions, incidents and billing events, per team, from the materialised activity projection (FR-40). Filter by kind, agent, key or domain; cursor-paginated. Retained for the plan window (Free 90 days, paid 365). Auth: ApiKeyAuth. ### GET /api/activity/live Live event tail (SSE) Server-sent events over the event store; the cursor is the event id (uuidv7, time-ordered), resumable by event id. First batch immediately, then a 2-second poll. Filter by ?event_types= (comma-separated). Auth: ApiKeyAuth. ### GET /api/reputation Reputation health Per-domain and per-agent health scores (0–100) from the 30-day bounce / complaint / spam rates against the E6 ladder lines, with a 14-day trend and the breaker state plus what to do about it (FR-41). Under 10 sends the score is null (insufficient data), never a fake 100. Auth: ApiKeyAuth. ### POST /api/test-send/preview Preview a test send Runs the policy evaluation for the composer payload without sending and returns the verdict the send would get (FR-42). Session only — the composer mints a team test key. Nothing is stored. Auth: ApiKeyAuth. ### POST /api/test-send/send Send a test email Sends through the test lane: captured to the sandbox inbox with a msg_test_ id, never delivered, never metered (FR-42). Session only. Recipients must be team members. Auth: ApiKeyAuth. ### GET /api/test-send/drafts List test-send drafts The session user's composer drafts for the team. Session only. Auth: ApiKeyAuth. ### POST /api/test-send/drafts Save a test-send draft Stores a composer draft (payload only). Session only. Auth: ApiKeyAuth. ### GET /api/test-send/drafts/{id} GET test-send drafts id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### DELETE /api/test-send/drafts/{id} Discard a test-send draft Deletes one of the session user's composer drafts. Session only. Auth: ApiKeyAuth. ### GET /api/alert-rules List alert rules The team's alert rules (FR-43). Slack webhook targets are returned masked. Auth: ApiKeyAuth. ### POST /api/alert-rules Create an alert rule Kinds: bounce_spike, complaint_spike, spam_rate, breaker_warning, webhook_failing, agent_cap_hit. Channels: slack, email, both. A rule trips at most once per cooldown window. Auth: ApiKeyAuth. ### GET /api/alert-rules/{id} GET alert-rules id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### PATCH /api/alert-rules/{id} Update an alert rule A request with no target keeps the stored Slack URL — a masked preview can never overwrite it. Auth: ApiKeyAuth. ### DELETE /api/alert-rules/{id} Delete an alert rule Deletes the rule and its open events. Auth: ApiKeyAuth. ### GET /api/alert-events List alert events One row per rule trip, newest first. Auth: ApiKeyAuth. ### PATCH /api/alert-events/{id} Acknowledge an alert event Marks an open alert event acknowledged. Auth: ApiKeyAuth. ### GET /api/search Search the team Searches messages (id / subject), domains, agents, templates and webhooks (FR-45). Recipient emails are never searched — they are stored hashed. Auth: ApiKeyAuth. ### GET /api/commands Command-palette catalogue The action catalogue filtered by the caller's team role, so the palette never offers an action the caller could not run (FR-45). Auth: ApiKeyAuth. ### POST /api/webhooks/{id}/deliveries/replay Bulk replay webhook deliveries One NEW delivery row per failed delivery id, with replay_of_id set and a fresh svix_id; non-failed or foreign ids are reported in skipped, never failed silently (FR-46). Admin and above. Auth: ApiKeyAuth. ### GET /api/webhooks/{id}/deliveries/{deliveryId}/diff Diff a delivery against its replay The recursive JSON diff between an original delivery and its replay (FR-46). 404 when no replay exists yet. Auth: ApiKeyAuth. ### GET /api/webhooks/{id}/failures Group webhook failures Failed deliveries grouped by failure class with counts and the latest example per class, most common first (FR-46). Auth: ApiKeyAuth. ### GET /api/migration-imports/{id}/items List import items The per-item mapping for one migration import (FR-47). The stored export document itself is never returned as an item. Auth: ApiKeyAuth. ### GET /api/migration-imports/{id}/rollback-plan Rollback plan for an import What a rollback would delete (draft-v1 templates, suppressions) and what stays manual (edited templates, verified domains, imported history) (FR-47). Auth: ApiKeyAuth. ### POST /api/migration-imports/{id}/rollback Roll back an import Deletes the imported templates (draft v1 only) and suppressions the plan marks ready; domains and history are never touched automatically. Only a completed or partial import can be rolled back. Session only, admin and above. Auth: ApiKeyAuth. ### GET /api/migration-imports/{id}/parallel-runs List parallel runs Parallel comparison runs for one import (FR-47). Auth: ApiKeyAuth. ### POST /api/migration-imports/{id}/parallel-runs Start a parallel run The same mail through ScopedPost (live lane, metered) and through the previous provider (Resend or Postmark — SES has nothing to compare), to one team member (FR-47). Session only, admin and above. The external key is stored encrypted and never returned. Auth: ApiKeyAuth. ### GET /api/migration-imports/{id}/parallel-runs/{runId} Get a parallel run One parallel run with its per-side outcomes, refreshed lazily on read (FR-47). Auth: ApiKeyAuth. ### GET /api/migration-imports GET migration-imports Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/migration-imports POST migration-imports Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/migration-imports/{id} GET migration-imports id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/migration-imports/{id} POST migration-imports id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/mcp POST mcp Requires an API key. Auth: ApiKeyAuth. ### GET /api/health Health check No authentication. ### GET /api/status Public status Overall status plus active and recently resolved incidents. Tenant-misconfiguration incidents are listed separately and never move the overall status. ### GET /api/trust GET trust No authentication. ### GET /api/capabilities Capability manifest What ScopedPost can do, its limits, its plans, its auth, and where the machine-readable docs live — one versioned JSON document for agents deciding whether to integrate. Every capability names real endpoints; the integration test asserts each one exists in this spec. ### GET /api/openapi.json This OpenAPI document Generated from the implementation on every build; the served document and docs/openapi.json are the same object. ### GET /api/inbound/{id} GET inbound id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/inbound/receive POST inbound receive Provider-signed webhook — the caller must present the provider's signature. ### GET /api/logs Search logs One API over the hot tier (0–30 days) and the cold tier (to 90 days Free / 365 paid). Filters: message, recipient, status, event_type, domain, key / agent, date. Auth: ApiKeyAuth. ### GET /api/usage Get current usage and projected bill Reads the same meters the invoice reads, so the dashboard and the bill cannot disagree. Auth: ApiKeyAuth. ### GET /api/webhooks List webhook endpoints Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/webhooks Create a webhook endpoint Svix-style HMAC signing; the secret is shown once. Free includes 0 endpoints, Growth 10, Scale unlimited. Auth: ApiKeyAuth. ### GET /api/webhooks/{id} GET webhooks id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### DELETE /api/webhooks/{id} DELETE webhooks id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/webhooks/{id}/deliveries GET webhooks id deliveries Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/webhooks/{id}/replay POST webhooks id replay Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/operator/appeals/{appealId}/decide POST operator appeals appealId decide Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/billing/invoices POST operator billing invoices Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/billing/offers GET operator billing offers Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/billing/offers POST operator billing offers Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/billing/offers/{id} PATCH operator billing offers id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/billing/offers/report GET operator billing offers report Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/cost GET operator cost Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/policy-decisions GET operator policy-decisions Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/dead-letters GET operator dead-letters Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/dead-letters POST operator dead-letters Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/login POST operator login No authentication. ### POST /api/operator/mfa POST operator mfa Authenticated by a single-use signed token in the URL or request body. ### POST /api/operator/mfa/setup POST operator mfa setup Authenticated by a single-use signed token in the URL or request body. ### POST /api/operator/mfa/setup/confirm POST operator mfa setup confirm Authenticated by a single-use signed token in the URL or request body. ### GET /api/operator/retention GET operator retention Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/teams/{teamId}/overview GET operator teams teamId overview Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/teams/{teamId}/pause POST operator teams teamId pause Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/teams/{teamId}/pause/release POST operator teams teamId pause release Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/teams/{teamId}/reputation GET operator teams teamId reputation Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/teams/{teamId}/ses-tenant/teardown POST operator teams teamId ses-tenant teardown Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/abuse-signals GET operator security abuse-signals Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/security/unlock POST operator security unlock Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/audit-verification GET operator security audit-verification Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/security/audit-verification POST operator security audit-verification Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/encryption GET operator security encryption Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/findings GET operator security findings Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/findings/{id} GET operator security findings id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/security/findings/{id} PATCH operator security findings id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/launch-gate GET operator security launch-gate Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/pentest GET operator security pentest Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/security/pentest POST operator security pentest Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/pentest/{id} GET operator security pentest id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/security/pentest/{id} PATCH operator security pentest id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/security/pentest/{id}/findings/{findingId} PATCH operator security pentest id findings findingId Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/security/pentest/{id}/report POST operator security pentest id report Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/runbooks GET operator security runbooks Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/security/runbooks POST operator security runbooks Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/security/tabletop GET operator security tabletop Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/security/tabletop POST operator security tabletop Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/observability/reputation GET operator observability reputation Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/observability/abuse GET operator observability abuse Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/observability/providers GET operator observability providers Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/providers GET operator providers Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/providers/failover POST operator providers failover Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/slo/reports GET operator slo reports Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/slo/reports POST operator slo reports Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/backups GET operator backups Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/status/incidents GET operator status incidents Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/status/incidents POST operator status incidents Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/status/incidents/{id} PATCH operator status incidents id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/status/incidents/{id}/updates POST operator status incidents id updates Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/controls GET operator soc2 controls Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/soc2/controls/{id} PATCH operator soc2 controls id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/controls/{id}/gaps GET operator soc2 controls id gaps Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/soc2/controls/{id}/gaps POST operator soc2 controls id gaps Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### PATCH /api/operator/soc2/gaps/{id} PATCH operator soc2 gaps id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/reviews GET operator soc2 reviews Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/soc2/reviews POST operator soc2 reviews Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/policies GET operator soc2 policies Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/policies/{id} GET operator soc2 policies id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/soc2/policies/{id}/approve POST operator soc2 policies id approve Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/risks GET operator soc2 risks Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/soc2/risks/assessments GET operator soc2 risks assessments Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/soc2/risks/assessments POST operator soc2 risks assessments Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/chaos GET operator chaos Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/chaos/run POST operator chaos run Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/gtm GET operator gtm Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/dedicated-ip GET operator dedicated-ip Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/dedicated-ip/{id}/approve POST operator dedicated-ip id approve Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/dedicated-ip/{id}/reject POST operator dedicated-ip id reject Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/dedicated-ip/{id}/provision POST operator dedicated-ip id provision Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/access-reviews GET operator access-reviews Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/access-reviews POST operator access-reviews Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/access-reviews/{id} GET operator access-reviews id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/access-reviews/{id} POST operator access-reviews id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/access-reviews/items/{id} POST operator access-reviews items id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/leavers GET operator leavers Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/leavers POST operator leavers Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/leavers/{id} POST operator leavers id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/change-packs GET operator change-packs Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/change-packs POST operator change-packs Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/change-packs/{id} GET operator change-packs id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/change-packs/{id} POST operator change-packs id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/change-packs/items/{id} POST operator change-packs items id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/people GET operator people Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/people POST operator people Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/people/{id} GET operator people id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/people/{id} POST operator people id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/people/checklists/{id} POST operator people checklists id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/vendors GET operator vendors Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/vendors POST operator vendors Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/vendors/{id} POST operator vendors id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/evidence GET operator evidence Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/evidence POST operator evidence Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/type1 GET operator type1 Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/type1 POST operator type1 Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/type1/{id} GET operator type1 id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/type1/gaps/{id} POST operator type1 gaps id Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### GET /api/operator/dormancy GET operator dormancy Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/dormancy POST operator dormancy Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/operator/dormancy/{agentId} POST operator dormancy agentId Operator console only — requires an operator session with MFA. Auth: SessionAuth + OperatorAuth. ### POST /api/provider-events/sns POST provider-events sns Provider-signed webhook — the caller must present the provider's signature. ### GET /api/teams/{teamId} GET teams teamId Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/agents GET teams teamId agents Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents POST teams teamId agents Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/agents/{agentId} GET teams teamId agents agentId Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/agents/{agentId}/activity GET teams teamId agents agentId activity Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/inbox POST teams teamId agents agentId inbox Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/agents/{agentId}/keys GET teams teamId agents agentId keys Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/keys POST teams teamId agents agentId keys Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/keys/{keyId}/revoke POST teams teamId agents agentId keys keyId revoke Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/keys/{keyId}/rotate POST teams teamId agents agentId keys keyId rotate Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/pause POST teams teamId agents agentId pause Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/policy POST teams teamId agents agentId policy Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/agents/{agentId}/resume POST teams teamId agents agentId resume Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/appeals POST teams teamId appeals Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/approvals GET teams teamId approvals Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/approvals/bulk-approve POST teams teamId approvals bulk-approve Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/deletion GET teams teamId deletion Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/deletion POST teams teamId deletion Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/dedicated-ip GET teams teamId dedicated-ip Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/dedicated-ip POST teams teamId dedicated-ip Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains GET teams teamId domains Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains POST teams teamId domains Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains/{domainId} GET teams teamId domains domainId Requires a signed-in dashboard session. Auth: SessionAuth. ### DELETE /api/teams/{teamId}/domains/{domainId} DELETE teams teamId domains domainId Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains/{domainId}/checks GET teams teamId domains domainId checks Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains/{domainId}/checks/run POST teams teamId domains domainId checks run Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains/{domainId}/insights GET teams teamId domains domainId insights Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/domains/{domainId}/verify POST teams teamId domains domainId verify Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains/{domainId}/dkim GET teams teamId domains domainId dkim Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains/{domainId}/dkim/rotate POST teams teamId domains domainId dkim rotate Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains/{domainId}/dmarc-ramp GET teams teamId domains domainId dmarc-ramp Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains/{domainId}/dmarc-ramp/start POST teams teamId domains domainId dmarc-ramp start Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains/{domainId}/dmarc-ramp/pause POST teams teamId domains domainId dmarc-ramp pause Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains/{domainId}/dmarc-ramp/resume POST teams teamId domains domainId dmarc-ramp resume Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/domains/{domainId}/dmarc-reports GET teams teamId domains domainId dmarc-reports Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/domains/{domainId}/dmarc-reports POST teams teamId domains domainId dmarc-reports Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/drafts GET teams teamId drafts Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/drafts/{draftId}/approve POST teams teamId drafts draftId approve Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/drafts/{draftId}/reject POST teams teamId drafts draftId reject Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/emails GET teams teamId emails Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/emails/{id} GET teams teamId emails id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/emails/export POST teams teamId emails export Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/emails/suppression-recheck POST teams teamId emails suppression-recheck Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/events/{eventId}/explain GET teams teamId events eventId explain Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/integrations GET teams teamId integrations Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/integrations POST teams teamId integrations Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/keys GET teams teamId keys Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/keys POST teams teamId keys Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/keys/{keyId}/revoke POST teams teamId keys keyId revoke Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/keys/{keyId}/rotate POST teams teamId keys keyId rotate Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/members GET teams teamId members Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/members POST teams teamId members Requires a signed-in dashboard session. Auth: SessionAuth. ### PATCH /api/teams/{teamId}/members/{userId} PATCH teams teamId members userId Requires a signed-in dashboard session. Auth: SessionAuth. ### DELETE /api/teams/{teamId}/members/{userId} DELETE teams teamId members userId Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/policies GET teams teamId policies Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/policies POST teams teamId policies Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/policy-decisions GET teams teamId policy-decisions Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/sso GET teams teamId sso Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/sso POST teams teamId sso Requires a signed-in dashboard session. Auth: SessionAuth. ### PATCH /api/teams/{teamId}/sso PATCH teams teamId sso Requires a signed-in dashboard session. Auth: SessionAuth. ### DELETE /api/teams/{teamId}/sso DELETE teams teamId sso Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/sso/saml/metadata GET teams teamId sso saml metadata Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/sso/saml/certs GET teams teamId sso saml certs Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/sso/saml/certs POST teams teamId sso saml certs Requires a signed-in dashboard session. Auth: SessionAuth. ### PATCH /api/teams/{teamId}/sso/saml/certs/{certId} PATCH teams teamId sso saml certs certId Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/reputation GET teams teamId reputation Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/sandbox-inbox GET teams teamId sandbox-inbox Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/saved-views GET teams teamId saved-views Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### POST /api/teams/{teamId}/saved-views POST teams teamId saved-views Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/saved-views/{id} GET teams teamId saved-views id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### PATCH /api/teams/{teamId}/saved-views/{id} PATCH teams teamId saved-views id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### DELETE /api/teams/{teamId}/saved-views/{id} DELETE teams teamId saved-views id Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/simulator GET teams teamId simulator Requires a signed-in session or an API key. Auth: ApiKeyAuth. ### GET /api/teams/{teamId}/smtp-credentials GET teams teamId smtp-credentials Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/smtp-credentials POST teams teamId smtp-credentials Requires a signed-in dashboard session. Auth: SessionAuth. ### DELETE /api/teams/{teamId}/smtp-credentials/{id} DELETE teams teamId smtp-credentials id Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/smtp-credentials/{id}/rotate POST teams teamId smtp-credentials id rotate Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/templates GET teams teamId templates Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/templates POST teams teamId templates Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/templates/{templateId} GET teams teamId templates templateId Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/templates/{templateId}/publish POST teams teamId templates templateId publish Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/teams/{teamId}/templates/{templateId}/preflight POST teams teamId templates templateId preflight Requires a signed-in dashboard session. Auth: SessionAuth. ### GET /api/teams/{teamId}/residency GET teams teamId residency Requires a signed-in dashboard session. Auth: SessionAuth. ### PATCH /api/teams/{teamId}/residency PATCH teams teamId residency Requires a signed-in dashboard session. Auth: SessionAuth. ### POST /api/v1/test-emails POST v1 test-emails Requires an API key. Auth: ApiKeyAuth. ## Schemas ### Error - `error` (object) (required) ### EmailCreate - `from` (string) (required) - `to` (string) (required) — Recipient address, or an array of addresses. - `cc` (string) - `bcc` (string) - `reply_to` (string) - `subject` (string) (required) - `html` (string) — HTML body. Rendered in an isolated worker; user JSX is not executed. - `text` (string) — Plain-text body. - `template_id` (string) — Versioned template to render instead of html/text. - `tags` (array) - `scheduled_at` (string) — P1 (scheduled sends) — accepted but not yet scheduled in v1. ### EmailAccepted - `id` (string) — Message id, msg_… - `status` (string) - `request_id` (string) ### Email - `id` (string) - `from` (string) - `to` (string) - `subject` (string) - `status` (string) - `created_at` (string) ### EmailList - `object` (string) - `data` (array) - `has_more` (boolean) ### EmailBatchResult - `data` (array) ### Domain - `id` (string) - `object` (string) - `domain` (string) - `stream` (string) - `status` (string) - `spf_state` (string) - `dkim_state` (string) - `dmarc_state` (string) - `records` (array) - `created_at` (string) ### DomainList - `object` (string) - `data` (array) ### LogList - `object` (string) - `data` (array) - `has_more` (boolean) - `tiers` (array) ### Usage - `plan` (string) - `period` (string) - `sends` (object) - `inbound` (object) - `total_cents` (integer) - `billing_status` (string) - `overage_opt_in` (boolean) - `spend_cap_cents` (integer) ### WebhookEndpoint - `id` (string) - `url` (string) - `events` (array) - `status` (string) - `created_at` (string) ### WebhookList - `object` (string) - `data` (array) ### PublicStatus - `overall` (string) - `active` (array) - `recent_resolved` (array)