Resend Rewrote Its Email API in Go and Treated Behavior as the Contract

Resend Rewrote Its Email API in Go and Treated Behavior as the Contract

Resend has published how it moved its email API from Node to Go, and the opening line is the one every API team should tape to the wall: “Rebuilding an API means preserving years of decisions, including the ones that never made it into the documentation.” Over seven weeks and roughly 140 pull requests, the new service went from an empty project to carrying all email API traffic by October. During the 50 percent split, median latency on POST /emails fell from 58 ms to 31 ms, p99 from 498 ms to 420 ms, and memory per task from about 1.3 GB to about 180 MB.

Those are Resend’s own measurements, taken from its own rollout, and they deserve that label. What survives independent of the numbers is the method. Resend built a harness that sent identical requests to both services and compared not just HTTP responses but database rows, S3 objects, idempotency behavior and rate limits, because “both services could return a successful response while persisting different metadata or producing different email content.” It even ported its HTML-to-text conversion to Go so all 60 fixtures matched the Node output, and kept some Node quirks deliberately, because changing an unexpected behavior can still break an integration that depends on it. The honest caveat is in the post too: the tail barely moved, because the slow part is waiting on S3 and the database.

The surface that migration had to hold steady is the one the catalog indexes on the Resend provider page. The hot path is the Resend Emails API and the Resend Send API, which is where POST /emails and the batch endpoint live, and the email content the harness compared depends on the sending identities configured through the Resend Domains API. The catalog record describes a bearer-token REST API with SDKs across Node.js, Python, Go and more than half a dozen other languages, plus an official MCP server.

Here is the tension. Resend scores 58.9 on the Kin Score, in the strong band, with access clarity at 71.1 and contract quality at 66.7, and an Agent Readiness of 49.4. But the two things the migration team worked hardest to preserve, error responses and idempotency behavior, are exactly the two Agent Readiness dimensions the catalog finds unlit: error_semantics and idempotency. Contract governance sits at 27.3, the weakest facet. Resend just proved internally, with a differential harness, that its errors and retries are a contract. The public record does not yet say so where a client or an agent can read it.

← Qlik Moves Its Cloud APIs to Quarterly Date-Based Versions
Telnyx Redacts Call Recordings Before They Ever Reach Storage →