> 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: Track a Client's Site Status

## Article: Track a Client's Site Status

## Article Link: https://dev.wix.com/docs/api-reference/account-level/studio-workspace/skills/track-a-client-s-site-status.md

## Article Content:

# Track a Client's Site Status

## Description
Gives a partner (agency) a status summary of one client site: is it live, does it have a Premium plan, is a custom domain connected, and can the client get in. It only reads. It never publishes, buys, connects, invites or changes anything.

## API Endpoint

One account-level call answers the summary: `POST https://www.wixapis.com/site-list/v2/sites/query`. Docs: [Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/sites/query-sites.md)

## Rules

- **Read-only.** Don't change anything on the site, even to fix what's missing. When the user then asks for a fix, hand it to its own recipe (see "After the summary").
- **Real data only.** Never assume a plan, a renewal or a domain. A fact you couldn't read is "not checked", never a guess.
- **No upsells or product recommendations.** Report the plan as a fact ("on the free plan"). Don't suggest a plan, a domain, a price or an upgrade, and don't draft a sales message to the client.
- **Write for the partner**, in plain business language. Not as a message to the client, and without endpoints, field names, enum values or IDs.
- **Not for traffic, visitors or sales.** If "how is the site doing" means visits or sales, use [Query Site Analytics](https://dev.wix.com/docs/api-reference/business-management/analytics/skills/query-site-analytics.md) instead.
- **One client per summary.** Ranking or comparing many client sites is not this recipe.

## Steps

### 1. Find the client's site

- The user gave a site ID, or one is already in the conversation: use it.
- The user named the client: look first for a site ID or site name in what the user has already shared (their project record, notes, an earlier answer). Otherwise search the account's sites by name with [Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/skills/query-sites.md) ("Find a site by name"). Query Sites can't filter on `displayName`.
- Several sites match: list their names and ask which one. One match: use it without asking. No match: say no site in the account matched that name and ask for the site's name as it appears in their site list. Never ask the user for an ID.

### 2. Read the site

```
POST https://www.wixapis.com/site-list/v2/sites/query
```
```json
{ "query": { "filter": { "id": { "$in": ["<site id>"] }, "namespace": { "$in": ["WIX", "HEADLESS"] } } } }
```

Filter the ID with `$in`, never a plain value or `$eq`: those return `400` `Illegal metaSiteId filter value`. Don't page through the account's sites instead.

Account scope. The one row in `sites` answers the whole summary:

| Field | Tells you |
|---|---|
| `displayName` | the site's name |
| `published`, `viewUrl` | whether it's live, and its live address (`viewUrl` is `""` when unpublished) |
| `updatedDate` | when it was last changed |
| `premium` | whether it has a Premium (paid) plan |
| `domainConnected` | whether a custom domain is connected |
| `ownerAccountId`, `contributorAccountIds` | who owns the site and which accounts collaborate on it |
| `blocked` | Wix blocked the site: lead the headline with that |

A trashed site isn't returned by this call. So an empty `sites` array for a known ID means the site may be in the trash, or was created minutes ago and doesn't show up yet: report it as "possibly in the trash", not "not found". Don't say the site isn't in the account, and stop.

### 3. Plan

`premium` `false`: the site is on the free plan. `premium` `true`: it has a Premium plan. That flag is all this recipe reports about the plan. The plan's name, renewal and next billing date are not checked here: list them under "Not checked" and offer to look them up. Reading them is the job of the account's Premium subscriptions recipes, not this one. Don't call any Premium API from this recipe, and never state or estimate a price.

### 4. Domain

- `domainConnected` `false`: "no custom domain connected". On the free plan that's expected; state it, no suggestion.
- `domainConnected` `true`: "custom domain connected". When `published` is `true`, `viewUrl` shows the live address; otherwise report "domain connected, site not published". Its expiry and renewal are not checked here: for those, use [Analyse Domain](https://dev.wix.com/docs/api-reference/account-level/domains/skills/analyse-domain.md).

### 5. Client access

From Step 2, compare `ownerAccountId` with the user's own account ID (the Account ID in the Wix context):

- Different: another account owns the site, often the client after a handover. Report "owned by another account"; that it is the client is not checked unless the user said so ("from you").
- The same: the partner still owns it. Count the accounts in `contributorAccountIds`, excluding `ownerAccountId` if it's listed. The API gives account IDs only, no names or emails, so it can't tell which collaborator is the client. Report "N collaborators besides you; whether one of them is the client: not checked", unless the user has said so ("from you"). Pending invites aren't in this data, so never report "the client has no access" as a fact: say "no collaborator besides you; pending invites not checked".

To list, invite or remove collaborators, use [Manage Site Collaborators](https://github.com/wix/skills/blob/5eea11026d00450ee28c115af4e06e052e69c7cf/skills/wix-manage/references/collaborators/manage-site-collaborators.md*original::../collaborators/manage-site-collaborators.md).

## Reporting back

Short, in this order:

1. **Headline**: one sentence, e.g. "Pine Ridge Dental is live on a Premium plan with its own domain connected."
2. **Set up**: what's in place (live, plan, domain, client access), each with its source: "from the site" for what you read, "from you" for what the user told you.
3. **Missing**: at most 5 items, only facts (e.g. "not published", "no custom domain connected", "no collaborator besides you").
4. **Not checked**: what you couldn't read, and why in plain words ("plan name and renewal date: not checked here, I can look them up if you want").
5. **Next step**: one suggestion, a project action for the partner (e.g. "confirm with the client whether one of the 2 collaborators is them"), never a plan, product or price.

Write dates out ("3 March 2027"). Don't show IDs or field names unless the user asks.

## After the summary

If the user asks to act on something in the summary, use its recipe and ask before any change:

| Task | Recipe |
|---|---|
| Connect a domain | [Connect Domain](https://dev.wix.com/docs/api-reference/account-level/domains/skills/connect-domain.md) |
| Give the client access | [Manage Site Collaborators](https://github.com/wix/skills/blob/5eea11026d00450ee28c115af4e06e052e69c7cf/skills/wix-manage/references/collaborators/manage-site-collaborators.md*original::../collaborators/manage-site-collaborators.md) |