orbit.test · mail.orbit.test · Local lab · merged demo project
Developer · API
Sending API examples
Illustrative requests for a future transactional endpoint. The host is not routable and no key shown here works.
curl -X POST https://mail.invalid/v1/messages \
-H "Authorization: Bearer cnv_preview_key" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: req_orbit_8f21c0" \
-d '{
"from": "hello@orbit.test",
"to": ["maya@personal.test"],
"subject": "Your Orbit workspace is ready",
"text": "Welcome to Orbit. This is a synthetic example.",
"template": "welcome"
}'Required request headers
Headers and fields that matter for a safe request.
Authorization
Bearer token with emails:send. Never place a key in a URL or client-side code.
Idempotency-Key
Unique per logical request. Reuse with an identical payload to retry safely; a different payload must conflict.
Content-Type
application/json. Character encoding must be explicit.
traceparent (optional)
Distributed tracing context. Useful for correlating logs without exposing personal data.
What 202 means
202 Accepted means the service durably recorded the request. It does not mean the recipient's server accepted it, that it reached an inbox, or that anyone read it. Those are later events.
The response must include a job identifier so the client can poll or receive webhook events. The fixture response demonstrates the intended shape only.
Never trust a 2xx blindly
- Base URL
- https://mail.invalid
- Endpoint
- POST /v1/messages
- Auth
- Bearer token
- Server
- Not running