Skip to Content

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.

POST /v1/connections
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.

  1. Find and write

    We find the DNS provider, then write the records or show them.

  2. Check until live

    Goes live when every record resolves. No TXT record to add.

  3. 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.

  1. Your backendPOST /v1/connections
  2. Control planeThe /v1 API, four connection paths, the propagation poller and webhooks.Writes DNS once, steps out
  3. Customer DNSCNAME or A record to the edge

Then, on every request

  1. A visitorhttps://theirbrand.com
  2. Edge planeOn-demand TLS at the handshake and a reverse proxy. One indexed read asks whether the hostname is approved: no approval, no certificate.
  3. Your origin
your backend POST /v1/connections Control plane /v1 API · four connection paths · propagation poller · webhooks writes DNS, steps out writes records once customer DNS · CNAME / A → edge ask on handshake { approved } one indexed read Edge plane on-demand TLS · reverse proxy no approval, no certificate https://theirbrand.com TLS handshake at the edge your origin
The API is never in the request path: the control plane writes DNS once, and the edge carries every request to 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.

  1. pendingconnection.created

    The connection exists. Its records are shown, or about to be written.

  2. propagatingconnection.applied

    The records were written for the customer: provider sign-in, one-click setup or an API key.

  3. liveconnection.live

    Every record resolves. Records added by hand come here straight from pending. Checked once an hour after that.

  4. failedconnection.failed

    The 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 reason

Four 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.