OpenSend docs
Update Domain
Update mutable domain settings such as tracking or provider metadata.
PATCH /domains/{id}
Compatibility note: PATCH /api/domains/{id} 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
Only fields accepted by the domain service are changed.
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/{id} while dashboard page requests continue to render normally.