Connect a domain
Records the domain and returns the two DNS records to create: a TXT that proves you own it, and a CNAME. Nothing routes until the TXT is seen. Paid plans only.
POST/v1/sites/{site_id}/domains
Requires domains:write and a workspace admin. Costs no credits. Paid plans only.
Nothing is routed until the TXT record is seen. Show the person the records exactly as returned, then check the domain. A subdomain such as www.example.com is the reliable choice. See Domains.
A draft has no custom domain, and a Site has a limited number. A site over its limit is refused with a 409 conflict that names it.
Authorizations
Authorizationbearerin headerrequiredPath parameters
site_idstringrequiredThe site's id, or its slug (the address before .atelier201.page).
Body
application/jsonrequiredhostnamestringrequiredlength: 3–253 charsThe full hostname, e.g. www.example.com. A subdomain is the reliable choice.
Response
Connect a domain
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_credits
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, result_not_ready, idempotency_key_reused
errorobjectrequiredrequest_idstringrequiredPossible codes: result_expired
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large_for_plan
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequiredPossible codes: service_unavailable
errorobjectrequiredrequest_idstringrequired