Developer docs
Build on top of SecDNS. Every screen of the admin console is a REST call — the full surface is documented in our Swagger UI, and there is a Terraform module if you would rather provision declaratively.
Quickstart
- Sign in and create an API key from
/settings/api. - Pin
https://api.secdns.ioas your base URL. - Send every request with
Authorization: Bearer <token>. - Inspect responses against the OpenAPI spec at api.secdns.io/docs.
REST API
The complete Swagger UI lives at api.secdns.io/docs. The OpenAPI 3 JSON is at api.secdns.io/docs-json for use with codegen.
Devices
/v1/devicesRegister, list, update and delete devices. Each device gets a unique DoH/DoT URL and inherits a policy via its profile.
Profiles
/v1/profilesCRUD for filtering profiles. Attach categories, custom blocklists and schedules.
Zones (authoritative)
/v1/zonesCreate authoritative zones, manage records, configure DNSSEC, and trigger AXFR/IXFR transfers.
Blocklists
/v1/blocklistsManage curated and custom blocklists. Import RPZ files, hosts files, or AdBlock Plus syntax.
Queries
/v1/queriesQuery log read API. Filterable by device, category, blocked status, and time window.
Reports
/v1/reportsAggregated reports (top blocked, top categories, devices by volume).
Webhooks
/v1/webhooksSubscribe to threat events, anomaly detections and configuration changes via signed HTTP callbacks.
Scans (DNS audit)
/v1/scansRun an asynchronous DNS audit for any domain (SPF, DMARC, DKIM, DNSSEC, MX, NS, blocklist membership).
Webhook events
Subscribe to threat.detected, device.created, policy.changed and more. Payloads are HMAC-SHA256 signed.
Terraform module
Provision profiles, devices and zones declaratively. Available on the public Terraform registry.
registry.terraform.io →