Domains API
Updated Mar 25, 2026 · 5 min read
List, register, migrate, configure DNS programmatically.
On this page · 4
- POST /v1/domains/check-availability
- POST /v1/domains
- POST /v1/domains/:id/dns-records
- GET /v1/domains/:id/health
The domains API lets you register, migrate, and configure domains programmatically - the same primitives MagicLee uses internally.
POST /v1/domains/check-availability
Check if a domain is available across configured registrars. Returns price per registrar.
POST /v1/domains
Register a new domain. Body: { name, registrar (optional, default auto-cheapest), nameservers (optional, default Cloudflare). } Returns a domain id.
curl -X POST https://api.inboxlee.com/v1/domains \
-H "Authorization: Bearer $INBOXLEE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"example-outbound.com"}'POST /v1/domains/:id/dns-records
Apply the standard SPF/DKIM/DMARC/MX stack. Idempotent - calling twice has no extra effect.
GET /v1/domains/:id/health
Returns the live health score, breakdown across DNS, blacklist, and seed-test signals, and the last verification timestamps.