> 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: Elevation

## Article: Elevation

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

## Article Content:

# Elevation

Wix restricts sensitive methods based on [identity](https://dev.wix.com/docs/overview/auth-permissions/identities.md), roles, and [permissions](https://dev.wix.com/docs/overview/auth-permissions/permissions.md) to protect site and account data.

Sometimes you need to call a method that requires higher authorization than the identity making the call has. For example, [Confirm Booking](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/confirm-booking.md) can't be called by site visitors or members, or by Wix users without an administrative bookings role. Elevation lets you make the call anyway, where supported.

Depending on the development path, you apply elevation either to a single call or to a client used for multiple calls. The rest of your flow that doesn't go through elevation continues to use the caller's identity.

Elevation must run in backend code, to avoid exposing your app's credentials.

## When to use elevation

Keep elevation scoped to the specific call that needs higher permissions. Don't use elevation if the operation already works with the caller's existing permissions. For backend-only server-to-server admin work, use an [API key](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md#api-keys) to authenticate.

<blockquote class="caution">

**Caution:** When backend code that elevates is reachable from outside, anyone who can call that code gets elevated access. Make sure callers are properly authorized before the elevation runs.

</blockquote>

## Elevation across development paths

The development path determines how you elevate calls:

- **Sites:**
  - **Studio Two:** Elevate in backend code with `auth.elevate()` from `@wix/essentials`. See [`auth.elevate()`](https://dev.wix.com/docs/sdk/core-modules/essentials/auth.md).
  - **Wix Studio and Wix Editor:** Elevate in backend code. See [About Elevation](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/authorization/elevate-api-call-permissions.md) in Extend Websites.
- **Wix-managed headless projects:** Elevate in backend code. See [Elevate API Call Permissions with the Astro Integration](https://dev.wix.com/docs/go-headless/authentication/admin/elevate-api-call-permissions-with-the-astro-integration.md) in Go Headless.
- **Self-managed headless projects:** Elevate in backend code with the OAuth `client_credentials` flow, which yields an app token that runs as the [Wix app](https://dev.wix.com/docs/overview/auth-permissions/identities.md#wix-app) identity. For admin access beyond the project's own site, use an [API key](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md#api-keys) instead. See [About Admin Operations](https://dev.wix.com/docs/go-headless/authentication/admin/about-admin-operations.md).
- **Wix-managed apps:** Elevate in backend code. See [Elevate API Call Permissions](https://dev.wix.com/docs/build-apps/develop-your-app/develop-an-app-with-the-cli/project-development/elevate-api-call-permissions.md) in Build Apps.
- **Self-managed apps:** Elevate in backend code. See [Elevate SDK Call Permissions](https://dev.wix.com/docs/build-apps/develop-your-app/develop-a-self-managed-app/elevate-sdk-call-permissions-for-self-managed-extensions.md) and [Elevate REST API Call Permissions](https://dev.wix.com/docs/build-apps/develop-your-app/develop-a-self-managed-app/elevate-rest-api-call-permissions-for-self-managed-extensions.md) in Build Apps.
- **Blocks apps:** Elevate in backend code, using the same model as Wix Studio and Wix Editor sites. See [About Elevation](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/authorization/elevate-api-call-permissions.md) in Extend Websites.

## See also

- [Permissions](https://dev.wix.com/docs/overview/auth-permissions/permissions.md)
- [Authentication Methods](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md)
- [Identities](https://dev.wix.com/docs/overview/auth-permissions/identities.md)