OpenSend docs
Introduction
Core concepts for the OpenSend API.
OpenSend is a REST API for sending, receiving, and operating email on infrastructure you control. You can use OpenSend Cloud at https://opensend.namuh.co or run the same API surface on your own deployment.
Base URL
txt
https://opensend.namuh.coFor local development, use the port configured by your app, usually:
txt
http://localhost:3015Authentication
Use an OpenSend API key in the Authorization header.
http
Authorization: Bearer os_YOUR_API_KEYDashboard session cookies are not API credentials. Create API keys from the dashboard or API key endpoints, scope them narrowly, and rotate keys when they leave your control.
First production send
A production send needs three things:
- An
os_API key. - A verified sending domain.
- A request to
/emails,/emails/batch, a broadcast send route, or an SDK method that calls those APIs.
Use idempotency keys for retryable send requests so duplicate network retries replay the original accepted response instead of creating extra sends.
Response codes
200/201/202— request accepted or completed.400— malformed request or invalid state.401— missing API key.403— API key lacks the required permission.404— resource not found for the authenticated tenant.409— idempotency or conflict error.422— validation error.429— rate limit exceeded.500— server error.
Machine-readable contracts
- OpenAPI:
/openapi.json - LLM docs index:
/docs/llms.txt - Styled human docs:
/docs