POST

Create Connected Domain


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. Domains purchased and billed through Wix can't be connected via this endpoint to a Wix site.

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.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Domains
Learn more about app permissions.
Method Declaration
Copy
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?