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 in the Site Actions API. To find the ID of a site in the account, call Query Sites 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. 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 Site SSL & 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

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.

Last updated: 23 September 2026

Did this help?