Management API
The OxiDNS management API is a separate control plane for health checks, configuration validation and persistence, process control, logs, upgrades, plugin extension APIs, and Prometheus metrics. This page is the interface map; detailed request formats, response fields, and examples live in topic pages.
Recommended workflow
- Configure listening, TLS, Basic Auth, CORS, and the WebUI through Conventions and Security.
- Check the listener with
GET /api/healthz, then useGET /api/readyzfor DNS service readiness. - Validate configuration before saving it; apply it through reload and poll the reload status.
- Expose control, logs, upgrades, and plugin data only to trusted networks.
- Keep
/api/metricswithin the same access-control boundary as the management plane.
Interface map
| Topic | Main routes |
|---|---|
| Conventions and Security | Listening, HTTPS/mTLS, Basic Auth, WebUI, CORS, route layout, configuration templates |
| Health, Control, Logs, and Upgrades | /api/health*, /api/build, /api/control, reload, logs/SSE, and upgrade |
| Configuration API | Read, write, check, and validate configuration |
| Plugin Extension APIs | Cache, matcher, provider, reverse lookup, and query recorder |
| Prometheus Metrics | /api/metrics and the metric catalog |
Compatibility
The management API reflects capabilities compiled into the current binary. Automation should inspect /api/build for bundle and plugin support and tolerate absent routes for optional plugins. Repeat readiness, configuration validation, and critical API smoke tests after an upgrade.