Domains API
Domains APIs manage redirect domains and optional custom email sending domains.Endpoint matrix
Domain creation + DNS model
Create flow validates:- plan domain limits
- global domain uniqueness
- normalized/punycode domain values
Verification/status model
Operational states include:- verification status (
verifiedboolean) - SSL status (
pending,active,failed) - provider-side status hints (for diagnostics)
POST /domains/:id/verify is safe to re-run and used as the canonical refresh action after DNS changes.
Domain settings update (PATCH /domains/:id)
Supports settings such as:
- not-found redirect URL
- expired-link redirect URL
- Apple App Site Association (AASA) JSON
- Android asset links JSON
Custom email-domain flow
Email-domain setup has stricter gating:- requires configured email provider credentials
- requires verified redirect domain first
- currently restricted to Enterprise entitlement
.../email/verify until status reaches verified, then use .../email/test to validate sender path.
Authorization and permissions
domains:readfor readsdomains:managefor create/update/delete/verify operations
Typical failures
403 LIMIT_EXCEEDEDwhen plan domain quota is reached400 DOMAIN_EXISTSwhen domain is already registered400 DOMAIN_NOT_VERIFIEDbefore email setup403 PLAN_REQUIREDfor non-Enterprise email-domain setup500 CF_ERROR/RESEND_ERRORfor provider operation failures
/user-guides/manual/workspace/workspace-settings-and-governance-reference/user-guides/manual/data/data-retention-and-lifecycle

