Three states, each with its own signal
“Connected” hides two different waits: DNS, and your own hosting. Give each one a state, and move a domain forward only on a signal your backend can check:
| State shown | What is true | Signal that ends it |
|---|---|---|
| DNS pending | The connection exists and not every required record has been seen yet (pending or in_progress) | The signed domain.added webhook, or the status completed |
| Setup finishing | DNS is connected and your hosting is still getting the hostname ready | A request to the hostname is answered by your app |
| Live | The customer’s address opens your app | None: this is the state to keep |
A connection can also end as failed. Show that as a message of its own and offer to start again, because a new connection has to be created.
The checklist behind the states
- Connection confirmed. Your backend received
domain.addedand verified its signature, orget_connection_statusreturnscompleted. - Hostname accepted. The service that serves the app has
shop.example.comregistered for this customer. - HTTPS ready. That service finished its own setup for the hostname, as explained in A CNAME is live: what still has to happen for SSL?.
- App answers. A request to the hostname returns your app.
Cnamio covers item 1 of the checklist above and reports it. It does not serve traffic or issue certificates, so items 2 to 4 belong to your hosting and usually start in the handler of domain.added, described in the webhook docs.
Check each signal yourself
get_connection_status({ jobId: 'job_00000000-0000-4000-8000-000000000000' })
curl -sS -o /dev/null -w "%{http_code}\n" https://shop.example.com/
The first line is the MCP call behind item 1; the job id is a placeholder in the right format. The second line asks the hostname itself. The client sends that name in the Host header and the server uses it to decide which site answers, so the request only returns your app once items 2 to 4 are done.
Sources
Read on December 1, 2026.