Connect a custom domain
Begin connecting a custom domain: registers a pending domain and returns the DNS instructions the customer must apply. First step of the connect state machine (enter to instructions to verify to active). Requires a write-scoped key.
Authorization
bearerAuth Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/admin/domains/connect" \ -H "Content-Type: application/json" \ -d '{ "hostname": "go.creator.com", "provider": "cloudflare" }'{ "hostname": "go.creator.com", "state": "pending"}{ "detail": { "code": "invalid_request", "message": "Invalid value for field." }}{ "detail": "auth required"}Bulk-copy content to many domains
Copy selected content parts from one source domain onto many target domains in a single call. Draft state only; the copy commits per target and reports each target's outcome. Requires a write-scoped key.
Trigger custom-domain verification
Run the DNS-verify probe for a connecting custom domain and, when DNS is green, transition it to `active`. Requires a write-scoped key.