> 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: Hand Over a Site to a Client

## Article: Hand Over a Site to a Client

## Article Link: https://dev.wix.com/docs/api-reference/account-level/studio-workspace/skills/hand-over-a-site-to-a-client.md

## Article Content:

# Hand Over a Site to a Client

Takes a Wix Studio partner (agency or freelancer) from "the site is done" to "the client has it". The partner picks one of three handover models; the agent checks what the site still needs, then gives the partner the transfer link or the steps to give the client access.

The agent guides, the partner decides. Every step is a suggestion; follow the partner's choice. The agent makes no writes in this flow: the transfer and the client's access are set up by the partner in the dashboard.

## When to use

- "I'm done building {site}, help me hand it over." A handover isn't only a transfer: name all three models.
- "Deliver the site to my client." / "Wrap up {client}'s site."
- "How does handover work?" / "Should I transfer the site or keep it?"
- "Transfer {site} to my client, but I want to keep access."
- "I'm keeping ownership; how do I give my client access?" (Keep ownership model; there is no API call to invite them, see step 4.)

Not for:

- Writing a client guide or a delivery email. If the partner asks, draft it as text for them to send.

## Calls

| Scope | Call | Purpose |
|---|---|---|
| Account | `POST https://www.wixapis.com/site-list/v2/sites/query` | [Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/sites/query-sites.md): find the site, read `premium`, `domainConnected`, `published` |

There is no public API to transfer a site, and the site invite API doesn't accept a signed-in user's token, so don't call either. The partner transfers the site, or invites the client, in the dashboard. Sources: [Transferring a site to another Wix account](https://support.wix.com/en/article/transferring-site-ownership-to-another-wix-account), [Roles & permissions](https://support.wix.com/en/article/roles-permissions-overview).

## The three models

| Model | After the handover | Wix steps |
|---|---|---|
| **Transfer ownership** | The client owns and manages everything. The partner has no access. | Transfer the site in the dashboard. |
| **Stay as collaborator** | The client owns the site; the partner keeps Co-Owner access for ongoing support. | Transfer the site with **Keep my role as Co-Owner of this site after the transfer** checked. |
| **Keep ownership** | The partner stays the owner; the client gets dashboard access, not the editor. | Invite the client from Roles & Permissions; suggest the **Back Office Manager** role. |

## Flow

### First reply: status and the three models

When the partner hasn't chosen a model: one line on the site's status (step 3), then the three models, one line each on what happens after the handover, and let the partner pick (or skip for now). You may recommend one and give its next step (for example the transfer link), as long as the partner still sees all three and nothing is done for them. For example:

> No Premium plan and no custom domain yet; the site isn't published.
> 1. Transfer ownership: the client owns and runs the site; you have no access.
> 2. Stay as collaborator: the client owns it; you keep Co-Owner access for support.
> 3. Keep ownership: you stay the owner; the client gets dashboard access.
> Which one do you want, or skip this step for now?

Run steps 1–3 first; step 4 runs the model the partner picks.

### 1. Explain the models (informational questions)

If the partner only asks how handover works or which model to pick, explain the three models in plain words and ask whether they want to start a handover now. Don't look up sites or make any call until they say yes. This replaces the first reply.

### 2. Find the site

If the partner has the site open or gave its ID, use that. If they named the site or client, find it with Query Sites (see [Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/skills/query-sites.md) for searching by name); if several match, list them and ask which one. If they named nothing, list their recent sites and ask which one they are wrapping up; that question is the whole reply, and the first reply follows once they pick. Never ask for a site ID.

### 3. Check the site (silently)

Read the site's state yourself; never ask the partner whether it has a plan or a domain. Make this call before the first reply; don't call GetSiteContext for this (it doesn't say whether a domain is connected). One call, with account scope:

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

Filter `id` with `$in`; `$eq` on `id` is rejected. If `sites` is empty, wait 3 seconds and retry once. Still empty: the status line says the plan and domain couldn't be checked, and the first reply goes on as usual (list the three models, ask which one). From `sites[0]` read:

| Field | Meaning |
|---|---|
| `premium` | The site has a Premium (paid) plan. |
| `domainConnected` | The site has a connected custom domain. |
| `published` | The site is live. |

Report the result in one short line ("No Premium plan and no custom domain yet; the site is published"). If `published` is false, note it as still open; publishing is the partner's step in the editor, not a call from this recipe.

### 4. Ask which model, then run it

If the partner already chose a model, use it. Otherwise give the first reply (skip = "I've already handled the client's access" / "later"). If they skip, give no transfer link or access steps, and go to step 5.

**Transfer ownership / Stay as collaborator**

- If `domainConnected` is false and the partner hasn't already said how they'll handle the domain, recommend connecting one before the transfer, so the client receives a site that is fully set up, and offer once to do it ([Connect Domain](https://dev.wix.com/docs/api-reference/account-level/domains/skills/connect-domain.md)); a custom domain needs a Premium plan, and that flow covers the upgrade. Stop there and wait for the answer. If the partner declines or defers it (for example, the client will connect their own), give the transfer link and note the missing domain in step 5.
- A missing Premium plan doesn't block it. Note that the client receives the site without a plan, and suggest agreeing with the client who buys it.
- The client needs a Wix account with the email the site is transferred to; they can create one when they accept. If the partner isn't sure the client has one, flag it before the transfer.
- Give the partner the transfer link, with the site ID in it:
  `https://manage.wix.com/dashboard/{siteId}/home?alwaysfs=TRUE&action=transfer`
- Tell the partner what to do there: enter the client's email, choose whether the site's plan and domain move with the site, and, for **Stay as collaborator**, check **Keep my role as Co-Owner of this site after the transfer**. With it checked the partner remains a collaborator the client can remove at any time; unchecked, they lose all access.
- Facts to pass on:
  - Only the site owner can transfer a site. A Co-Owner can't.
  - The client gets an email invite and must accept it within 3 days, or the transfer expires.
  - Some Premium subscriptions can't be transferred with the site. The transfer form says so; the partner can unassign the plan first and then transfer.
  - The partner's payment method doesn't transfer; the client pays future renewals.

**Keep ownership**

- Suggest the **Back Office Manager** role: it can manage the site's settings and apps in the dashboard but can't edit the site. The partner can pick another role; don't suggest Admin (Co-Owner), which gives full control.
- Give the steps: open the site's dashboard (`https://manage.wix.com/dashboard/{siteId}/home`), go to **Roles & Permissions**, click **Invite People**, enter the client's email, choose the role, and send.
- The client accepts the invite by email and needs a Wix account with that email; they can create one when they accept.
- Don't send the invite yourself or offer to.
- No plan needed: don't flag a missing plan as open in step 5. If `domainConnected` is false, mention after the access steps that the site has no custom domain yet and offer once to connect one ([Connect Domain](https://dev.wix.com/docs/api-reference/account-level/domains/skills/connect-domain.md)); it can be left for later.

### 5. Wrap up

In the reply that ends step 4 (transfer link, access steps, or skip), sum up:

- what was done (transfer link given, access steps given, or access skipped);
- what's still open: a deferred domain or plan, the transfer or invite the partner still has to send, the client's acceptance (3 days for a transfer);
- if the partner wants, draft a short note to the client with the next step on their side (accept the transfer or invite). Draft it for the partner to send; never send messages yourself.

## Edge cases

- **The partner changes the model mid-flow**: restart step 4 with the new model; don't reuse the previous model's steps.
- **The partner isn't the site owner**: they can't transfer it; the owner has to start the transfer.

## Rules

- This recipe makes no writes. The transfer and the invite are the partner's actions in the dashboard; a domain purchase or connection follows the domain recipe, which asks first.
- Check the plan and domain yourself; never ask the partner about them.
- No upsells beyond the plan and domain the handover needs.
- Don't mention the partner's earnings or partner points in anything meant for the client.