Docs/Quickstart

Quickstart

Quickstart

Use this path when you want to add customer custom-domain setup to a SaaS product and test the first hostname quickly.

What Custom Domain Kit Adds

Custom Domain Kit gives your product a hosted custom-domain setup flow. Your app keeps its own accounts, plans, permissions, tenant database, and runtime routing. Custom Domain Kit handles the domain setup UI, domain records, status refreshes, and status webhooks.

Four-step integration

  1. Create an app in the Custom Domain Kit dashboard and configure the webhook endpoint you will use in production.
  2. Add server endpoints in your SaaS app for setup sessions and webhook delivery.
  3. Embed <custom-domainkit-setup> on the customer domain settings page.
  4. Test one real customer hostname from setup through traffic and webhook delivery.

Required Values

You need these values before the browser renders the setup UI:

ValueWhere it comes fromBrowser safe
apiBaseUrlCustom Domain Kit environmentYes
appIdApplication created in Custom Domain KitYes
tenantIdYour product databaseYes
actorIdCurrent operator in your productYes
setupTokenYour server signs it with the app secretYes, short lived
appSecretShown once when the app is createdNo
  1. Before you start
  2. Cloudflare connection modes
  3. Billing rules
  4. Create an App
  5. Server integration
  6. Frontend integration
  7. First test domain

Success Criteria

The quickstart is complete when:

  • The app secret is stored only on your server.
  • Your setup-session endpoint returns a fresh cdk_st_... setup token.
  • The embedded setup UI can create a domain and show DNS records.
  • The hostname reaches active.
  • A browser request to the customer hostname reaches your SaaS origin.
  • Your webhook receiver accepts a signed domain.status_changed event.