> 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: Auth on the Wix Platform

## Article: Auth on the Wix Platform

## Article Link: https://dev.wix.com/docs/overview/auth-permissions/auth-on-the-wix-platform.md

## Article Content:

# Auth on the Wix Platform

Authentication and authorization together govern access to Wix APIs. Authentication establishes who is calling. Authorization determines whether that identity is allowed to perform the requested action, based on its scopes and roles.

## Auth model

Wix's auth model has several parts. Together, they determine whether an API call is allowed to run.

- **[Identity](https://dev.wix.com/docs/overview/auth-permissions/identities.md):** The actor the call runs as, such as a visitor, member, Wix user, Wix app, or API key admin. Where the code runs shapes which identity a call gets. For example, a call made from a site runs as the current visitor or member, while a call made from the dashboard runs as a Wix user.
- **[Authentication method](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md):** How the call proves that identity to Wix. There are three methods: OAuth, API keys, and host auth. Which method a call uses depends on the identity it needs and where the code runs.
- **[Permissions](https://dev.wix.com/docs/overview/auth-permissions/permissions.md):** Whether the identity is allowed to invoke the API method being called, based on its scopes and role.
- **[Elevation](https://dev.wix.com/docs/overview/auth-permissions/elevation.md):** When the identity lacks the permissions a method requires, elevation lets backend code run that one call with higher permissions, without changing the identity the rest of your code uses.

For a side-by-side map of which identity uses which authentication method and token, see [Auth Quick Reference](https://dev.wix.com/docs/overview/auth-permissions/auth-quick-reference.md).

## Auth across development paths

The development path determines how you set up auth:

- **Sites:** Wix handles authentication automatically for frontend, backend, and dashboard code. You don't configure tokens.
- **Wix-managed headless projects:** With Wix's Astro integration, Wix handles the baseline token exchange and your code calls the SDK with the resolved caller identity. With any other framework, you handle authentication yourself, as in self-managed headless.
- **Self-managed headless projects:** You manage authentication directly. The right method depends on the identity and operation. See [Authentication Methods](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md).
- **Wix-managed apps:** Wix handles the baseline token exchange, and your code calls the SDK with the resolved caller identity.
- **Self-managed apps:** You manage authentication directly. The right method depends on the identity and operation. See [Authentication Methods](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md).
- **Blocks apps:** Wix handles authentication automatically. The auth model is the same as for Wix-managed apps.

Every development path supports [elevation](https://dev.wix.com/docs/overview/auth-permissions/elevation.md), which lets backend code run a single call with higher permissions than the current identity. The mechanics differ by path.

For the identity and authentication method behind common build scenarios, see [Auth Quick Reference](https://dev.wix.com/docs/overview/auth-permissions/auth-quick-reference.md#by-scenario).

## See also

- [Auth Scenarios](https://dev.wix.com/docs/overview/auth-permissions/auth-scenarios.md)
- [REST API Authentication](https://dev.wix.com/docs/api-reference/articles/authentication/rest-api-authentication.md)
- [Set Up a Wix Client](https://dev.wix.com/docs/api-reference/articles/sdk-setup-and-usage/set-up-a-wix-client.md)
- [Troubleshoot Auth Issues](https://dev.wix.com/docs/overview/auth-permissions/troubleshoot-auth-issues.md)