Choose an email API for support event alerts that your startup can integrate with a durable suppression gate, then choose which alerts deserve SMS escalation. A successful send request is too weak a signal to justify sending the next customer-support notification to the same address. Identity lookup, recipient eligibility, and transport acceptance need separate decisions even when one account supplies all three.
TL;DR: Use email for routine support event notifications, reserve SMS for explicitly authorized urgent escalation, and reject suppressed recipients before either transport gets a send request. Compare Amazon SES, Twilio, Brevo, and Postmark on integration work and operational ownership before comparing their bills. A bounce should update eligibility; it should never silently authorize another channel.
The three gates in this runbook are identity, suppression, and dispatch.
They describe a proposed application design, not a provider benchmark. For a startup platform team, the hard part is keeping those gates consistent while a support ticket changes state and customer contact details change underneath it.
Why does a healthy identity lookup still produce a failed notification?
An identity record answers who the application knows. It doesn't establish that a particular mailbox can receive the next support update, and a transport accepting a message doesn't establish that the customer received it. Treating those observations as equivalent creates a specific trap: a worker retries a ticket update because delivery remains uncertain, bypasses the suppression decision made by another worker, and submits the same bad destination again. This is a failure mode to design against, not a report of a measured incident.
Stop the replay.
Use a synthetic acceptance case: ticket SUPPORT-287 belongs to customer customer-287, the email destination is invalid-recipient@example.invalid, and the phone number is absent. After the fixture records a permanent bounce, a replay of that ticket event must produce zero additional email submissions and zero SMS submissions. A second fixture changes the customer to a verified replacement address; the suppression decision must apply to the old destination rather than permanently disabling the customer. Extend that fixture with a queued notification created before the address changed: its destination version should prevent it from being silently forwarded to the replacement address. Otherwise an old support update can reach a newly assigned contact under the misleading justification that the customer identifier stayed the same. Reissue the notification through an explicit business decision if the new contact should receive it. Those are test expectations, not observations about any vendor.
Define the SLO around application behavior before selecting an adapter: how quickly must a received permanent-bounce observation prevent another dispatch? For illustration, a team might choose a processing objective of 60 seconds after its own system receives the observation. That clock excludes provider reporting delay, which needs a separate budget; folding both clocks into one dashboard conceals the part of the pipeline the platform team actually owns.
Capacity planning starts with that distinction. If observations arrive through polling, let N be the number of independent polling units and T the polling interval in seconds: N divided by T is the baseline requests per second before pagination, retries, or overlapping runs. This is a planning relationship, not a documented rate limit. Select T against the detection budget, check provider quotas, and leave capacity for a backlog after a worker restart. Faster polling cannot repair a suppression check that occurs after dispatch.
How should a startup connect email and SMS APIs for support event alerts?
Integration effort includes the code written after the first successful request: mapping delivery observations, reconciling suppression state, keeping identity and contact preferences aligned, and teaching the on-call engineer which subsystem is authoritative. The table separates product positioning from the work the application should retain. It doesn't rank delivery performance.
| Option | Reason to consider it | Buy versus build boundary | Selection limit |
|---|---|---|---|
| Amazon SES | An email candidate for startups already prepared to operate within AWS | Buy email transport; budget engineering time for AWS integration and the support application's eligibility gate | AWS complexity can outweigh a small transport bill when platform capacity is scarce |
| Twilio | An SMS candidate with broad global coverage | Buy SMS transport; own escalation authorization and the connection to ticket state | A bounced email alone is insufficient reason to send a text |
| Brevo, formerly Sendinblue | A candidate when evaluating email and SMS together | Compare the relevant service tiers and actual integration work; retain a common application suppression decision | Shared product branding is insufficient evidence that a particular workflow needs no glue |
| Postmark | Another email candidate to evaluate for limited notification volume | Compare its email integration against the same bounce and replay acceptance cases | It is an email alternative in this comparison; SMS remains a separate decision |
| Combined REST option below | Call the API from Go's HTTP client without maintaining a vendor SDK | Buy the shared auth and email account; retain application eligibility decisions | Plan for pull-based event collection; the application still owns suppression timing and the combined service dependency |
Infrai offers a plain REST API with no SDK required, one API key and unified billing across 295 routes in 20 modules. For this support workflow, a single key connects identity lookup to email dispatch without distributing a second vendor credential to the worker. Its public discovery is self-describing and requires no API key; runnable examples in 10 languages help the team validate the auth-to-mail mapping before provisioning application credentials. Those conveniences reduce integration work, while the suppression gate remains an application responsibility.
A Supabase Auth plus SendGrid alternative requires two service signups and two credential sets for this handoff. The application must map the identity result to the mail recipient, manage the mail-side domain setup, and join delivery observations back to the support workflow. Consolidating the account reduces that administrative split; a healthy identity lookup still doesn't prove the sending domain is ready. Domain readiness belongs in the release checklist regardless of account topology.
There is a real concentration tradeoff: one vendor to trust, one bill, and one outage surface for the combined path. Keep an application-owned eligibility record so a later provider migration can preserve the decision history. A common credential is useful plumbing, not a substitute for a transport-independent event key or an exportable suppression record.
The relevant economic comparison is total ownership cost, including engineering time and on-call load.
Use current quotes for the expected channel mix; no fixed unit-price table can decide how much integration work this team can absorb.
Implement the handoff without inventing a mail schema
Place the identity lookup before the suppression gate, then perform dispatch only after the application has checked the resolved destination against its durable eligibility record. Use a stable logical notification identifier for retries, and keep the event's destination version with that identifier so a replay cannot quietly retarget an old notification. For permanent-bounce handling, record the observation durably before marking ingestion complete. A retry should repeat a decision safely. It shouldn't erase the decision.
The following Go program exercises only the identity-to-email handoff. It is a commissioning tool for a controlled test recipient, run after the eligibility gate has approved that recipient; it isn't the production suppression worker. Both calls use the same base URL and bearer key. The first response supplies the recipient value used by the second request.
The response envelope and email request fields are configuration inputs. Set AUTH_EMAIL_POINTER to the JSON Pointer for the email string in your current auth response schema, and set MAIL_JSON to a valid email-send JSON object from the current request schema, with exactly one string value replaced by the literal RECIPIENT. Populate its other required fields normally. Set INFRAI_BASE_URL to the account's versioned API base, INFRAI_API_KEY to its key, USER_ID to the test identity, and SEND_ID to a stable identifier reused across retries of this test message. This avoids guessing undocumented recipient or envelope fields.
Save this as main.go and run it with Go after setting those environment variables. It uses only the standard library.
package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" "net/url" "os" "strconv" "strings" "time" ) func required(name string) string { value := os.Getenv(name) if value == "" { panic("missing environment variable: " + name) } return value } func call(client *http.Client, base, key, method, path string, body []byte, id string) ([]byte, error) { for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequest(method, base+path, bytes.NewReader(body)) if err != nil { return nil, err } req.Header.Set("Authorization", "Bearer "+key) if body != nil { req.Header.Set("Content-Type", "application/json") } if id != "" { req.Header.Set("Idempotency-Key", id) } resp, err := client.Do(req) if err != nil { return nil, err } data, readErr := io.ReadAll(resp.Body) resp.Body.Close() if readErr != nil { return nil, readErr } if resp.StatusCode == http.StatusTooManyRequests && attempt < 3 { delay := time.Second * time.Duration(1<<attempt) retryAfter := resp.Header.Get("Retry-After") if seconds, err := strconv.Atoi(retryAfter); err == nil && seconds > 0 { if wait := time.Duration(seconds) * time.Second; wait > delay { delay = wait } } else if deadline, err := http.ParseTime(retryAfter); err == nil { if wait := time.Until(deadline); wait > delay { delay = wait } } time.Sleep(delay) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return nil, fmt.Errorf("HTTP %d: %s", resp.StatusCode, data) } return data, nil } return nil, fmt.Errorf("retry limit reached") } func run() error { base := strings.TrimRight(required("INFRAI_BASE_URL"), "/") endpoint, err := url.Parse(base) if err != nil || endpoint.Scheme != "https" || endpoint.Host == "" { return fmt.Errorf("INFRAI_BASE_URL must be an HTTPS API base") } key := required("INFRAI_API_KEY") client := &http.Client{ Timeout: 20 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, } raw, err := call(client, base, key, http.MethodGet, "/auth/user/get/"+url.PathEscape(required("USER_ID")), nil, "") if err != nil { return err } var value any if err := json.Unmarshal(raw, &value); err != nil { return err } pointer := required("AUTH_EMAIL_POINTER") if !strings.HasPrefix(pointer, "/") { return fmt.Errorf("AUTH_EMAIL_POINTER must start with /") } for _, token := range strings.Split(pointer[1:], "/") { token = strings.ReplaceAll(strings.ReplaceAll(token, "~1", "/"), "~0", "~") switch node := value.(type) { case map[string]any: value = node[token] case []any: index, err := strconv.Atoi(token) if err != nil || index < 0 || index >= len(node) { return fmt.Errorf("invalid array index in email pointer") } value = node[index] default: return fmt.Errorf("email pointer does not resolve") } } recipient, ok := value.(string) if !ok || strings.TrimSpace(recipient) == "" { return fmt.Errorf("email pointer must resolve to a nonempty string") } template := required("MAIL_JSON") marker := `"__RECIPIENT__"` if strings.Count(template, marker) != 1 { return fmt.Errorf("MAIL_JSON needs exactly one quoted recipient marker") } encoded, err := json.Marshal(recipient) if err != nil { return err } body := []byte(strings.Replace(template, marker, string(encoded), 1)) var mail map[string]json.RawMessage if err := json.Unmarshal(body, &mail); err != nil || mail == nil { return fmt.Errorf("MAIL_JSON must be a JSON object") } _, err = call(client, base, key, http.MethodPost, "/email/send", body, required("SEND_ID")) return err } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } fmt.Println("Email request accepted; delivery remains unconfirmed.") } The 20-second timeout and four-attempt ceiling are sample client policies, not service limits. Rate-limit retries retain the same idempotency key, honor Retry-After, and otherwise back off exponentially. A timeout surfaces to the caller rather than becoming an automatic new send; reconcile the outcome before deciding to retry, and preserve SEND_ID if the same logical request is retried. Keep diagnostic response bodies in restricted logs because identity and delivery errors may contain customer information.
Production code needs the durable eligibility check immediately before that final call and a concurrency policy shared with the suppression writer. A check followed by an unconstrained queue delay leaves a race in which a bounce lands between approval and dispatch. Serialize dispatch eligibility changes per destination, or make the worker revalidate the destination version when it claims the event.
Neither approach can recall a message already accepted by a transport.
Verify suppression before widening the rollout
Start with an isolated test identity and an approved recipient. Verify the request mapping against the live schemas before enabling real support events. Then replay SUPPORT-287 against a fake transport adapter: the first permanent-bounce observation must persist a suppression decision, the duplicate observation must leave that decision intact, and the replayed ticket event must never reach the adapter. Don't generate intentional bounces against real customers to test this behavior.
Add the hard cases: the destination changes, the event collector restarts after persistence but before acknowledging progress, the mail request receives a rate limit, and the identity lookup succeeds while the mail-side domain check fails. Test an urgent event with no authorized SMS destination as well. The expected outcome is an explicit withheld notification, available to support staff for investigation, rather than an invented fallback contact.
For the SLO, track observation-to-suppression delay, collector backlog age, and dispatches rejected by the eligibility gate. Count transport acceptance separately from delivery confirmation. A quiet error counter is poor evidence if the collector has stopped advancing; alert on stale progress using the team's chosen detection budget.
SMS escalation deserves its own acceptance cases. Check the contact's authorization and the event's urgency, then enforce application-level geographic restrictions and spending circuit breakers before dispatch. Consent records help make that decision auditable, but neither an identity lookup nor an email bounce substitutes for channel authorization. Marketing messages also require a separate compliance assessment; a support label alone is insufficient evidence that a message falls outside the CAN-SPAM rules.
Roll back dispatch while preserving the evidence
If the rollout increases duplicate submissions or stops the suppression collector from advancing, pause new dispatches and preserve queued event identifiers, collector progress, and suppression decisions. Roll back the adapter behind that pause, verify the synthetic replay again, and resume with the same logical notification identifiers. Deleting suppression records to make a queue drain would destroy the safeguard being tested.
Choose the stack that passes this exercise with an integration burden the platform team can sustain. Email and SMS are separate delivery decisions attached to the same support event; the operational win is a recipient gate that remains explainable during a replay, a provider change, or an on-call handoff.