API reference

Versioned from the first release at /v1/…. Authenticate with a Bearer API key, send idempotency keys on mutating calls, and expect the same error shape every time.

Authentication

Authorization: Bearer calder_sk_live_… Test keys (…_test_…) simulate everything and deliver nothing. Keys are scoped to one project and one environment, hashed at rest, revocable anytime.

Endpoints

MethodPathWhat it does
POST/v1/emailsSend an email. Returns 202 with the email id.
GET/v1/emailsList emails in your project, newest first.
GET/v1/emails/:idFetch one email with its current status.
GET/POST/v1/domainsList domains / add a domain (returns a 72h DNS-TXT challenge).
POST/v1/domains/:id/verifyAttempt verification; failures return expected-vs-found diagnostics (10/hr).
POST/v1/domains/:id/tokenReissue the challenge after expiry.
DELETE/v1/domains/:idRemove a domain.
POST/v1/domains/:id/ses/linkRegister the SES identity; returns 3 DKIM CNAMEs (requires verified ownership).
POST/v1/domains/:id/ses/refreshPoll DKIM/identity status until SES verifies.
GET/v1/projectsList projects in your organization.
GET/POST/v1/webhooksList endpoints / register an endpoint (public https only; secret shown once).
DELETE/v1/webhooks/:idDelete an endpoint; in-flight deliveries fail terminally.
POST/v1/webhooks/:id/rotateRotate the signing secret (shown once; old secret dead immediately).
GET/v1/webhooks/:id/deliveriesLast 25 delivery attempts with status/latency/error.
POST/v1/webhooks/:id/deliveries/:deliveryId/replayRe-enqueue one delivery with its original data.

Idempotency

Send Idempotency-Key: <your-unique-key> on POST /v1/emails. Repeating a key within 24 hours returns the original result with a 200 instead of sending twice.

Errors

Always { error: { code, message, request_id } }. Common codes: validation_error, authentication_error, authorization_error, domain_not_verified, suppressed, rate_limit_error. Quote the request_id when contacting support.

Rate limits

Sending: 100/min. Verification: 10/min. Auth: 20/min. Every 429 includes limit, remaining, reset, and Retry-After headers.