> 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

# ListAppsAndStorage

# Package: cookieConsentPolicy

# Namespace: ConsentConfigsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/cookie-consent-policy/consent-configs/list-apps-and-storage.md

## Permission Scopes:
Consent config: SCOPE.CONSENT_CONFIG.MANAGE

## Introduction

Retrieves a list of installed embedded script apps that are in use on a site.

---

## REST API

### Schema

```
 Method: listAppsAndStorage
 Description: Retrieves a list of installed embedded script apps that are in use on a site.
 URL: https://www.wixapis.com/consent/consent-config/v1/site-apps-and-storage
 Method: POST
 Return type: ListAppsAndStorageResponse
  - name: installedEmbedApps | type: array<AppData> | description: Apps with embedded scripts installed on the site.  
     - name: consentConfigId | type: string | description: Consent config GUID.  | validation: maxLength 64
     - name: name | type: string | description: App name.  | validation: maxLength 64
     - name: appId | type: string | description: App GUID.  | validation: maxLength 64
     - name: version | type: string | description: App version.  | validation: maxLength 64
     - name: componentId | type: string | description: Component GUID.  | validation: maxLength 64
     - name: consentCategory | type: ConsentCategory | description: Consent category for compliance with privacy regulations.  
         - enum:
         -     UNKNOWN_CATEGORY: 
         -     essential: Includes core functionality such as security, verification of identity and network management. These cookies can’t be disabled.
         -     functional: Includes collecting data to remember choices users make to improve and give a more personalised experience.
         -     analytics: Includes tracking visitor interactions with a site, to discover errors and provide better overall analytics.
         -     advertising: Includes tracking advertising effectiveness to provide a more relevant service and deliver better ads to suit visitors' interests.
         -     data_to_third_party: Includes collecting data to pass on to a third party.
  - name: storageData | type: array<StorageDetails> | description: Cookies configured on the site.  | read-only: true 
     - name: consentConfigId | type: string | description: Consent config GUID.  | validation: maxLength 64
     - name: appId | type: string | description: GUID of app that owns the cookie.  | validation: maxLength 64
     - name: name | type: string | description: Storage item name  | validation: maxLength 64
     - name: type | type: StorageType | description:   
         - enum:
         -     UNKNOWN_STORAGE_TYPE: Unknown storage type.
         -     COOKIE: A [cookie](https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie) Wix stores in the browser.
         -     LOCALSTORAGE: A [local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) item that persists across tabs in the domain.
         -     SESSIONSTORAGE: A [session storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage) item for a specific tab in the domain.
         -     INDEXDB: An item in [IndexDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
     - name: consentCategory | type: ConsentCategory | description: Consent category for compliance with privacy regulations.  


```

### Examples

### List Apps And Storage
Return installed embedded apps and cookies that are in use on site

```curl
curl -X POST \
  'https://www.wixapis.com/consent/consent-config/v1/site-apps-and-storage' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  --data-binary '{
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.consentPolicy.consentConfig.listAppsAndStorage()
 Description: Retrieves a list of installed embedded script apps that are in use on a site.
 Return type: PROMISE<ListAppsAndStorageResponse>
  - name: installedEmbedApps | type: array<AppData> | description: Apps with embedded scripts installed on the site.  
     - name: consentConfigId | type: string | description: Consent config GUID.  | validation: maxLength 64
     - name: name | type: string | description: App name.  | validation: maxLength 64
     - name: appId | type: string | description: App GUID.  | validation: maxLength 64
     - name: version | type: string | description: App version.  | validation: maxLength 64
     - name: componentId | type: string | description: Component GUID.  | validation: maxLength 64
     - name: consentCategory | type: ConsentCategory | description: Consent category for compliance with privacy regulations.  
         - enum:
         -     UNKNOWN_CATEGORY: 
         -     essential: Includes core functionality such as security, verification of identity and network management. These cookies can’t be disabled.
         -     functional: Includes collecting data to remember choices users make to improve and give a more personalised experience.
         -     analytics: Includes tracking visitor interactions with a site, to discover errors and provide better overall analytics.
         -     advertising: Includes tracking advertising effectiveness to provide a more relevant service and deliver better ads to suit visitors' interests.
         -     data_to_third_party: Includes collecting data to pass on to a third party.
  - name: storageData | type: array<StorageDetails> | description: Cookies configured on the site.  | read-only: true 
     - name: consentConfigId | type: string | description: Consent config GUID.  | validation: maxLength 64
     - name: appId | type: string | description: GUID of app that owns the cookie.  | validation: maxLength 64
     - name: name | type: string | description: Storage item name  | validation: maxLength 64
     - name: type | type: StorageType | description:   
         - enum:
         -     UNKNOWN_STORAGE_TYPE: Unknown storage type.
         -     COOKIE: A [cookie](https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie) Wix stores in the browser.
         -     LOCALSTORAGE: A [local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) item that persists across tabs in the domain.
         -     SESSIONSTORAGE: A [session storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage) item for a specific tab in the domain.
         -     INDEXDB: An item in [IndexDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
     - name: consentCategory | type: ConsentCategory | description: Consent category for compliance with privacy regulations.  


```

### Examples

### listAppsAndStorage
```javascript
import { consentConfig } from '@wix/consent-policy';

async function listAppsAndStorage() {
  const response = await consentConfig.listAppsAndStorage();
};
```

### listAppsAndStorage (with elevated permissions)
```javascript
import { consentConfig } from '@wix/consent-policy';
import { auth } from '@wix/essentials';

async function myListAppsAndStorageMethod() {
  const elevatedListAppsAndStorage = auth.elevate(consentConfig.listAppsAndStorage);
  const response = await elevatedListAppsAndStorage();
}
```

### listAppsAndStorage (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { consentConfig } from '@wix/consent-policy';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { consentConfig },
  // Include the auth strategy and host as relevant
});


async function listAppsAndStorage() {
  const response = await myWixClient.consentConfig.listAppsAndStorage();
};
```

---