createConnectedDomain( )


Creates a connectedDomain object and starts the domain connection process. It may take up to 48 hours for the DNS changes to take effect.

You must pass the relevant Wix account ID in the header of the call. You may also pass a Wix site ID in the header.

You can only connect external domains using this endpoint.

You can connect both root domains and subdomains to Wix sites.

The domain can be assigned as a primary domain or a redirect. You can read more about primary and redirected domains. If you connect a domain as "PRIMARY" to a Wix site, the existing primary domain automatically becomes unassigned.

Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.

Method Declaration
Copy
Method Parameters
connectedDomainConnectedDomainRequired

Domain to connect.

Returns
Return Type:Promise<ConnectedDomain>
Did this help?