> 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/business-management/site-properties/properties/introduction.md

## Article Content:

# About the Site Properties API

Site Properties are a set of business-related values associated with a particular Wix site. They are modeled as a stream of versioned events (as in an event-sourced system), which can be accessed in their current state or materialized into snapshots. (A snapshot is essentially a key-value container that represents site properties at a given point in time, or in a given version).   

The Site Properties API is a service that holds all the public information about the site and business in a single place, including profile, contact details, schedule information, and consent policy. It’s a single source of truth for this data across Wix.  

Wix users enter this information in the Wix Dashboard under Settings > [Business Info](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info).

With the Site Properties API, you can:

- Retrieve a site's current business information.
- Update its profile, contact information, business schedule, regional settings, and default consent policy.
- Listen for changes to site properties.

## Site property categories

- **Profile**: Site display name, business name, description, and logo.
- **Contact**: Email address, phone number, fax number, and address.
- **Schedule**: Regular business hours and special exceptions.
- **Region**: Locale, language, multilingual settings, payment currency, and time zone.
- **Consent policy**: Default consent policy.
- **Other information**: Categories and business type.

## Updating business region settings

Use the Update Business Region method to update a site's payment currency or time zone. Specify `paymentCurrency`, `timeZone`, or both in the field mask. Fields not included in the field mask remain unchanged. To clear a field, include it in the field mask and omit it from the business region object.

Specify payment currencies as 3-letter ISO-4217 codes, such as `USD`, and time zones as IANA time zone IDs, such as `America/New_York`.

## Before you begin

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

- Site property updates are limited to 30 requests per site in a 60-second period. Reaching the limit blocks further updates to the site for 60 seconds.

## Consent Policy
To help site owners and app developers comply with privacy regulation guidelines such as GDPR and CCPA, Wix provides consent policies that can be used to restrict cookies and related technologies on Wix sites. Third parties can access and manage the default consent policy for a site using this API. The default consent policy is the consent policy initially applied to site visitors before they make any consent choices themselves, such as through a cookie consent banner. Read more about [managing consent policies](https://dev.wix.com/docs/build-apps/launch-your-app/legal-and-security/about-consent-apps.md#managing-consent-policies).

The consent policy includes the following types:
- **Functional**: Used to remember choices site visitors make to improve their experience (for example, language).
- **Analytics**: Lets the Wix user understand how visitors use the website (for example, which pages you visit), to provide statistics on how the website is used, improve the website by identifying any errors, and performance issues.
- **Advertising/Marketing**: Used to collect information about the impact of marketing campaigns performed in other websites.
- **Essential**: Lets the site visitor move around the website and use essential features like secure and private areas.
- **Data To Third Parties**: Lets the Wix user share data with other parties (includes the sale of data, as well sharing data for essential or enhanced functionality, for example, Google Analytics) - specifically for CCPA compliance.

> **Important**:  
> All apps are bound by the “Wix App Market – Partner Program Agreement”, which contains obligations related to privacy regulations (including honoring each site visitor’s decision about cookies).

For more information about the consent policy process for Wix users, see the following:  
- [About Consent Apps](https://dev.wix.com/docs/build-apps/launch-your-app/legal-and-security/about-consent-apps.md)
- [Displaying a Cookie Banner On Your Site](https://support.wix.com/en/article/displaying-a-cookie-banner-on-your-site)  
- [Adding a “Do Not Sell Data” Link to Your Wix Site](https://support.wix.com/en/article/adding-a-do-not-sell-data-link-to-your-wix-site)       
- [Important Information About Editor Elements - Third Party Apps](https://support.wix.com/en/article/important-information-about-editor-elements-third-party-apps-custom-code-and-the-cookie-banner#third-party-apps)

### Language vs. Locale
- Language (for example, `en`) determines the site language that will be displayed to the user of user on the site. It’s a list of (currently) 29 languages that Wix supports. It's also used in the HTML of the site for SEO and browser support purposes.  
- Locale (for example, `en-US`) determines the formats that will be used across the site: date and time, currency, units and measurements, and first day of the week.    

Wix saves and supports both, in order to support all locales, even though Wix doesn't support all languages, and to allow special combinations, such as a site in Japanese for Wix users in the US.

### Site Categories 
A category that the Wix user selected when they set up a site.

**Examples:**   
Business  
Online Store  
Music  
Design  
Blog  
Beauty & Wellness  
Portfolio & CV  
Events  
Photography  
Restaurants & Food  
Fitness  
Technology Company  
Real Estate Agency  
Yoga Studio  
Financial Consultant  
Makeup Blog  

## Use cases

- [Synchronize a site's regional settings with an external system](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/sample-flows.md#synchronize-a-sites-regional-settings-with-an-external-system).

## SDK Setup
  `@wix/business-tools`

To use the API, install the `@wix/business-tools` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/business-tools` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/business-tools` or `yarn add @wix/business-tools`. |
| Headless sites and apps | Run `npm install @wix/business-tools` or `yarn add @wix/business-tools`. |

#### Import the package

To import the package in your code:

```js
import { siteProperties } from '@wix/business-tools'
```

#### Import types

Types for this API are accessed through the `siteProperties` namespace you already imported above, as `siteProperties.<TypeName>`, using any type name shown in these docs.
  