Endpoints
| Method | Path | Auth | Notes |
|---|---|---|---|
| POST | /api/v1/messages | Bearer SDK key | Send a message. Validates the payload, enforces from on the bound domain, forwards to the per-account receive-worker’s POST /api/email/send. Returns { id, status: "queued" } on success (201). |
| GET | /health | none | Liveness probe. Returns { ok: true }. Useful for uptime monitors and the SDK’s connectivity smoke. |
Anything outside /api/v1/* and /health returns plain-text Not Found with status 404. The catch-all is registered at apps/sdk-backend/src/index.ts.