> 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/enterprise/site-management/site-publish-state-v1/introduction.md

## Article Content:

# About the Site Publish State API

The Site Publish State API lets you take a site in your Wix Enterprise account offline from your own systems, without deleting it. Use it when a site must stop serving visitors right away, for example while its content is under review, and keep the site intact so it can go live again later.

With the Site Publish State API, you can take a published site offline.

To make a site live again, call [Publish Site](https://dev.wix.com/docs/rest/account-level/sites/site-actions/publish-site.md) in the Site Actions API. To find the ID of a site in the account, call [Query Sites](https://dev.wix.com/docs/rest/account-level/sites/sites/query-sites.md) in the Sites API.

## Before you begin

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

- This API is called with an Enterprise [API key](https://support.wix.com/en/article/about-wix-api-keys). Send the key in the `Authorization` header and the ID of the account that owns the key in the `wix-account-id` header. The key needs the Manage Enterprise Site Publish State permission scope.
- Every request identifies the site to act on in `metaSiteId`.
- The site must be published when you call Unpublish Site. The call fails for a site that's already offline.
- Unpublishing doesn't delete the site or any of its content. The site stays in the account and remains editable.

## Use cases

- [Take a site offline while its content is under review](https://dev.wix.com/docs/api-reference/account-level/enterprise/site-management/site-publish-state-v1/sample-flows.md#take-a-site-offline-while-its-content-is-under-review)

## Terminology

- **Published site**: A site that's live on the internet and reachable by visitors at its domain.
- **Unpublished site**: A site that stays in the account and remains editable, but isn't reachable by visitors.

