From one API call to a live domain
CustomDomain™ finds the DNS provider, writes or shows the records, checks each one until live, then checks every hour.
curl -X POST https://api.customdomain.ai/v1/connections \
-H "Authorization: Bearer $CUSTOMDOMAIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"www.acme.test","application_id":"app_..."}'Response, 201 (trimmed)
{
"id": "con_…",
"domain": "www.acme.test",
"setup_type": "manual",
"status": "pending",
"records": [
{ "type": "CNAME", "host": "www.acme.test",
"value": "edge.customdomain.ai", "applied": false }
]
}From the docs quickstart in test mode, read October 30, 2026. Field names are exact.
Find and write
We find the DNS provider, then write the records or show them.
Check until live
Goes
livewhen every record resolves. No TXT record to add.Keep checking
Checked once an hour after launch. Edge certificates on Growth and up.
Two planes, deliberately separated
The control plane writes DNS and sends webhooks. The edge plane terminates TLS and forwards each request to your origin.
- Your backendPOST /v1/connections
- Control planeThe /v1 API, four connection paths, the propagation poller and webhooks.Writes DNS once, steps out
- Customer DNSCNAME or A record to the edge
Then, on every request
- A visitorhttps://theirbrand.com
- Edge planeOn-demand TLS at the handshake and a reverse proxy. One indexed read asks whether the hostname is approved: no approval, no certificate.
- Your origin
One state machine, reported over webhooks
A connection moves from pending to propagating to live, or to failed with a reason, and every move fires a webhook.
- pending
connection.createdThe connection exists. Its records are shown, or about to be written.
- propagating
connection.appliedThe records were written for the customer: provider sign-in, one-click setup or an API key.
- live
connection.liveEvery record resolves. Records added by hand come here straight from pending. Checked once an hour after that.
- failed
connection.failedThe records never appeared within 24 hours. The reason comes with the event.
POST /v1/connections
│ fires connection.created
▼
pending ───▶ propagating ───▶ live
│ │ fires connection.live
│ │
│ └─ checked once an hour for drift (state shown in the console)
│
└───▶ failed fires connection.failed, with a reasonFour ways the records get written
The domain check finds the shortest path the customer's provider allows. The widget takes it. The DNS provider directory shows each provider's path.
- sign in
Provider sign-in
The customer approves access at their DNS host. We write the records.
- one-click
One-click setup
The DNS provider applies the records itself from a signed link.
- api key
Scoped API key
A key scoped to the zone writes the records directly.
- by hand
Records by hand
The customer adds the exact records. We check each as it lands.
Roots are special. Your code shouldn't care.
A CNAME cannot sit at the root. Where the provider supports flattening (ALIAS, ANAME), the root points at the edge host. Otherwise it takes A records. Subdomains use a CNAME. The record set the API returns is already the right one for that provider. How that plays out for customer roots: connecting a root domain with ALIAS records.
No chicken-and-egg on certificates
On the edge, the certificate is issued on the first HTTPS request and renewed about 30 days before expiry. A hostname that was not approved gets no certificate. Edge serving and its certificates are on Growth and up. On Starter and Startup, domains point at your own servers.
How we treat your customers' DNS
- Existing records are detected and merged. A conflicting record shows up in the plan before anything is written.
- A provider sign-in or API key is either used for the write and dropped, or kept so missing records can be put back later. The customer can choose not to keep it.
- We never see or keep a registrar password.