CustomDomain Docs
Build

Move from another provider

Map the fields and events of your current setup to CustomDomain™.

If your product already connects customer domains through another service, the move is mostly renaming. This page maps what you store and handle today to what CustomDomain™ uses. Your customers' domains stay where they are until you decide to point them at us.

Moving a live domain

A domain that is live elsewhere keeps serving until its records change. Connect it here, check that it reads live, and only then retire the old setup. Domains already connected can be added up to 200 at a time with POST /v1/connections:bulk.

The plan

  1. Create an application and a key.
  2. Replace the call that opens your current connect flow with a token route on your server and the widget.
  3. Register a webhook and map its events using the table below.
  4. Connect a made up .test name in the Sandbox to check your receiver end to end.
  5. Connect your customers' domains, then retire the old handlers.

Fields

Your current setupCustomDomain™Notes
Your own id for the customer, kept on the connectionend_user_refSend it when you mint the token or create the connection. Webhooks echo it as user_id. Do not start ids with console:; the console reserves that prefix.
The customer's domaindomain on the connection, plus host for the subdomain labelA connection is one hostname.
Provider that was detected or usedprovider_id on the connection, provider on events
How the setup was donesetup_type (automatic, manual, async, mcp)
A flat propagation statusstatus on the connection: pending, propagating, live, failedEvents also carry propagation_status (pending, success, timeout) and connection_id, so a receiver rarely has to read the connection again.
A certificate statuscertificate.* events and GET /v1/connections/{id}/certificateSee Certificates.
A redirect statusredirection_status on events, www_redirect on the connectionPresent only where the domain is on the CustomDomain™ edge.
The DNS records to showrecords on the connectionComputed for you from the application's target.
A job or request id for a checkThe connection idPOST /v1/connections/{id}:recheck checks now.
Your own labelclient_label

Events

If your handler runs whenSubscribe toNotes
A domain is addedconnection.created
Records are written for itconnection.applieddata.via says which way. updated_objects lists what was written.
Records are seen and the domain worksconnection.liveThis is the one most integrations act on.
Records never showed upconnection.failedA recorded error_code rides along. See Troubleshooting.
A certificate is issued or renewedcertificate.issued, certificate.renewedcertificate.failed and certificate.expiring also exist.
A record disappeared laterdomain.record_missing, domain.record_restoredSent only where drift alerts are on for your service.
A domain is removedconnection.disconnectedremoval says what happened to its records.

The full list is the event catalog.

Webhook receiver

  • Signatures. Verify with the CustomDomain-Signature and CustomDomain-Timestamp headers and your endpoint's whsec_ secret. See Verifying signatures.
  • Idempotency. The same event can arrive more than once. Deduplicate on the envelope id.
  • Retries. A delivery succeeds on any 2xx within 15 seconds. See Delivery and retries.

Different targets for different customers

A connection takes the target of its application, set with PUT /v1/applications/{id}/connect-target. If today you pass a different set of records for each customer, create one application per target.

Check your work

  • A .test name in a Sandbox application reaches live after about 15 seconds and sends the same events as a real one, marked "sandbox": true.
  • Your handler sees user_id equal to the end_user_ref you sent.
  • Replaying a delivery (POST /v1/webhook-deliveries/{id}/replay) does not change anything twice.

On this page