Skip to main content
Mail delivery and simulation, brands, consent-aware audiences, campaigns, engagement, domain audit, prepaid summaries, inbound messages and signed events. Base URL: https://api.stackshift.cloud/v1 Authentication: Mail credentials select Live/Test; mail:send submits individual mail and mail:manage manages resources/campaigns. Public audit, migration-plan and migration-guides use https://api.stackshift.cloud/api/v1 with no authentication. Other Mail operations use the base URL above. Billing mutations require a signed-in billing owner and are described in the spending guide, not server-key SDK operations. Successful Mail responses are raw JSON, not a success/data envelope. SDK-backed operations are traced to official source files in the coverage report. Routes without an SDK wrapper are explicitly marked contract-only.

Errors

Mail handler errors return {"error":{"code":"…","message":"…","details":{}}}; details is optional. There is no required success field. Authentication or environment middleware can return {"error":"…"}. Check HTTP status and handle both shapes. See Test environment, brands, consent/imports, tracking, migration, and spending for worked requests, field limits and permission boundaries. The OpenAPI operation servers identify public audit routes separately. Authentication/environment middleware can return a simple error string; inspect HTTP status as well as structured Mail errors.

Examples

These static examples show the verified route and authentication boundary. Use the official SDK method shown in each heading so serialization and response unwrapping remain consistent with the contract. The example below requires a test credential (sspat_test_ prefix). IDs are illustrative; inspect the actual returned ID. A fresh send returns HTTP 202; an idempotent replay returns HTTP 200.

POST /mail/send

The request body is derived from MailSendInput in the official SDK contract. Response: