OpenSend docs
Create Domain
Create a sending domain and return the DNS records OpenSend expects operators to publish.
POST /domains
Compatibility note: POST /api/domains remains available for existing OpenSend integrations; new API clients should prefer the root compatibility path above. Browser dashboard navigation is preserved for page routes that share these names.
Authentication
Use an OpenSend API key in the Authorization header.
Authorization: Bearer os_YOUR_API_KEYDashboard session cookies are not API credentials.
Parameters
Body includes the domain name and optional provider metadata.
Response
Returns an OpenSend JSON response for the authenticated tenant. Error responses use OpenSend error envelopes and standard HTTP status codes.
Self-hosting notes
Self-hosted deployments can use the same path on their own OPENSEND_BASE_URL. Ensure middleware is enabled so API-like requests are routed to /api/domains while dashboard page requests continue to render normally.