> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/introduction.md

## Article Content:

# About the Domain DNS API

The Domain DNS API lets you manage the DNS zones of domains in
[Google's Cloud DNS](https://cloud.google.com/dns). Use it to connect domains
registered through Wix to non-Wix websites, to manage the DNS records of external
domains that are connected to Wix sites by nameservers, and to connect email
providers to domains.

With the Domain DNS API, you can:

- Preview a domain's DNS zone before connecting the domain.
- Create, update, and delete DNS zones and their DNS records.
- Connect an email provider to a domain by adding its mailbox records, and
  disconnect it by deleting them.

To connect an external domain to a Wix site, use the
[Connected Domains API](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/introduction.md).
To retrieve the email providers you can connect to a domain, use the
[Mailbox Providers API](https://dev.wix.com/docs/api-reference/account-level/domains/mailbox-providers/introduction.md).

## Mailbox records

[Add Mailbox Records](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/add-mailbox-records.md)
connects an email provider to a domain by adding the DNS records that route the
domain's email to the provider. You can connect a known provider by its ID, or
specify the records for any other provider yourself.

A domain has a single connected email provider at a time. Adding mailbox records
for a new provider replaces the provider that's already connected: all existing
`MX` records are deleted, along with the other records and `TXT` values that a
known provider added. Existing `TXT` values that weren't added by the previous
provider, such as SPF values, are kept.

[Delete Mailbox Records](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/delete-mailbox-records.md)
removes the connected provider's records in the same way. If no provider is
connected, it makes no changes.

## Before you begin

It's important to note the following points before starting to code:

- The Domain DNS API is accessible with API keys. You can't access this API with
  the standard authorization header. We recommend authenticating calls with an
  API key for your main account instead of a key for the relevant child account.
  Responses are consistent across API keys, provided you have the necessary
  permissions.
- A DNS zone holds up to 50 values per DNS record type. External DNS providers
  may support a different maximum number of values for a record type. These
  external limits aren't validated.
- You can [update DNS zones](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/update-dns-zone.md)
  for domains registered through Wix and for external domains connected to a
  Wix site by nameservers. You can't use the Domain DNS API for external domains
  connected by pointing, because their DNS records aren't managed by Wix.
- Mailbox records can be added to and deleted from root domains, such as
  `example.com`. Subdomains aren't supported.

## Use cases

- [Update DNS records for a registered domain](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/sample-flows.md#update-dns-records-for-a-registered-domain)
- [Connect an external domain by nameservers to a Wix site](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/sample-flows.md#connect-an-external-domain-by-nameservers-to-a-wix-site)
- [Connect an email provider to a domain](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/sample-flows.md#connect-an-email-provider-to-a-domain)

## Terminology

- **Registered domain**: A domain that's purchased, registered, and billed through Wix.
- **External domain**: A domain purchased through an external provider, not Wix.
- **Domain name**: The domain name, including the
  [top-level domain](https://en.wikipedia.org/wiki/Top-level_domain) (TLD).
  For example, `com`, `net`, or `org`.
- **DNS record**: A record in the
  [Domain Name System](https://en.wikipedia.org/wiki/Domain_Name_System) that
  maps a domain name to a resource, such as an IP address or a mail server.
- **DNS zone**: An administrative subdivision of the DNS namespace that holds a
  domain's DNS records. When you
  [create a DNS zone](https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/create-dns-zone.md),
  its records are uploaded to Google's Cloud DNS.
- **Email provider**: A service that hosts email for a domain, such as Google Workspace.
- **Mailbox records**: The DNS records that route a domain's email to an email
  provider. Mainly `MX` records, plus any `CNAME`, `TXT`, or `SRV` records the
  provider needs.
- **Account**: A Wix account that includes access to its sites.
  - **Team account**: An account that supports collaborative work through
    multiple sets of login credentials. Useful for agencies and resellers that
    manage many customer sites. In Wix Studio, team accounts are called workspaces.
  - **Child account**: An account contained within another account. The owners
    of a child account can interact only with the sites that belong to it, which
    limits client access to the relevant sites.


