Skip to main content
The i10 API is a JSON REST API generated directly from the schemas the server validates against. The raw OpenAPI 3.1 document is also served at https://api.i10.tech/openapi.json.

Base URL

All requests use HTTPS and exchange application/json payloads.

Authentication

Authenticate every request with an API key passed in the Authorization header using the HTTP Bearer scheme:
Keys are prefixed i10_live_ or i10_test_ so they are recognisable in your logs and greppable in a leak scan. A live key sends real mail. A test key never does: see Test mode.
Keep your API keys server-side. Never embed an API key in browser code, mobile apps, or public repositories.
Domain-restricted keys can send mail and retrieve messages for their allowed domains (POST /emails, POST /emails/batch, and GET /emails/{id}), and can read the webhook event catalog (GET /webhook-event-types), which holds no workspace data. Every other workspace-level endpoint (domains, webhooks, suppressions, and trusted templates) requires an unrestricted key.

Test mode

Use a test key (i10_test_) to try the API, including the interactive playground in these docs, without sending anything. A test send goes through the same checks as a live one: the request is validated, the from domain must be verified and allowed by the key’s scope, and suppressed recipients are refused. If a test send is accepted, the same live send would be accepted too. The email is then stored and returned like a real one, and GET /emails/{id} reports it with "mode": "test", but it is never handed to a mail server. Instead, i10 simulates delivery. Every test email gets an email.sent and an email.delivered event. To simulate other outcomes, send to these addresses: You can add a label after a +, for example bounced+signup@sandbox.i10.tech. Simulated bounces and complaints never add the address to your suppression list. Events about test emails go to your webhook endpoints like any other event, with "test": true in their data. Check that field if your handler should ignore test traffic. Test sends never count toward your plan’s sending limits or your bill, and never affect your sending reputation. They have their own daily limit of 1,000 units per workspace (resetting at midnight UTC). Each email costs one unit, plus one more for every started 100 KB of attachments. Past the limit the API returns 429 with name: "test_quota_exceeded". A test key can only:
  • send email (POST /emails and POST /emails/batch),
  • read test emails (GET /emails/{id}; a live email returns 404),
  • list and read domains (GET /domains and GET /domains/{id}).
Every other endpoint returns 403 with name: "test_key_not_allowed". Use a live key to change domains, webhooks, suppressions or trusted templates.

Errors

Error responses are a JSON object with three fields:
Two cases do not use this shape yet: a request body that is not valid JSON gets a plain-text 400, and on some endpoints an invalid parameter or body field gets a 400 with a validation report instead of 422. Treat any 400 as a bad request that will not succeed if retried unchanged. Common error names returned by public endpoints:

Idempotency

POST /emails and POST /emails/batch accept an optional Idempotency-Key request header so retries after a network error or timeout never send duplicate mail:
  • Replaying a request with the same Idempotency-Key and identical body returns 200 with the original message id(s) without sending again.
  • Reusing an Idempotency-Key with a different request body returns 409 with name: "idempotency_conflict".
  • Omitting Idempotency-Key treats every request as a distinct send.