Websites
Domains

Add domain to website

Changed on

Binds a domain to a website under a specific namespace.

post/api/websites/{id}/domains

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/websites/{id}/domains
  • Auth: none declared

Path parameters

idstring required

Website ID

Request body

configobject
dns_hosting_enabledboolean
domainstring required
generateboolean
labelstring
namespacestring required
platform_domainstring
platform_namespacestring

Response

Domain created

dns_hosting_enabledboolean required
domainstring required
gateway_hoststring
idinteger required
namespace'icann' | 'hns' required
owner_namestring
status'draft' | 'records_generated' | 'waiting_delegation' | 'active' | 'self_hosted' | 'error' | 'onchain_managed'
tlsa_rdatastring
zone_namestring

Changes