Developers
Everything an agent or a developer needs to read ScopedPost before writing a line of code — the contract, the limits, and the auth model, all machine-readable.
Machine-readable docs
| Asset | What it is |
|---|---|
| OpenAPI 3.0 | The full machine-readable contract — every route, its scope, and its responses. Generated from the implementation, so the spec and the server cannot drift apart. |
| llms.txt | The short index: what ScopedPost is, where the docs live, the concepts, and the core API. |
| llms-full.txt | The complete API reference in Markdown, generated from the same OpenAPI object as the spec. |
| Capability manifest | Capabilities, limits, plans, auth, SDKs, MCP tools, and trust facts as one versioned JSON document. |
| Trust feed | The trust centre as JSON — control matrix, sub-processors, policies, and what does not exist yet. |
Authentication
One header for everything: Authorization: Bearer <key>. Three key types, each with its own scope:
| Key | Scope |
|---|---|
sk_live_… | Human key — sends for real. |
sk_test_… | Human key — test lane, never delivers. |
sk_agent_… | Per-agent key — bound to one agent, one recipient-domain allowlist, and one cap set. |
Keys are stored as hashes, never in plain text, and each one revokes on its own. A key that leaks is a revoked key, not a breach. Read what a scoped key is.
Core endpoints
| Endpoint | What it does |
|---|---|
POST /api/emails | Send email |
POST /api/emails/batch | Send email |
GET /api/emails | Send email |
GET /api/emails/{id} | Send email |
POST /api/emails/{id}/cancel | Send email |
GET /api/domains | Sending domains |
POST /api/domains | Sending domains |
GET /api/domains/{id} | Sending domains |
POST /api/domains/{id}/verify | Sending domains |
GET /api/logs | Logs and events |
GET /api/usage | Usage and billing |
GET /api/webhooks | Webhooks |
POST /api/webhooks | Webhooks |
POST /api/test-send/preview | Test send |
POST /api/test-send/send | Test send |
The full list — agents, approvals, exports, templates, and the operator surface — is in the OpenAPI document.
Limits and reliability
- Batch sends accept up to 1,000 messages per request, with per-item results.
- Gateway: 20 requests a second per team (burst 40), 10 a second per key (burst 20). Breaches return 429 with a
Retry-After. - Idempotency keys are honoured for 24 hours — replaying the same payload returns the same result, and a different payload with the same key returns 409.
- Overage is a flat $0.30 per 1,000 sends at every volume. Plans: Free $0 for 3,000 sends, Growth $15 for 50,000, Scale $79 for 250,000.
- Reputation breakers are automatic: bounce 2% warns, 3% throttles by halving caps, 5% pauses sending for the tenant.
Webhooks
Outbound event webhooks are Svix-signed (HMAC-SHA256 over svix_id.timestamp.body, timestamps older than 5 minutes rejected). Both SDKs ship a verifyWebhookSignature helper that verifies against the raw body bytes. Growth includes 10 endpoints; Scale is unlimited.
Next steps
Start in minutes — signup, scoped key, first send. Integrations — SDKs, samples, migration, MCP. Answers — the direct answers.