> 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`). > - 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/bu/legal/v1/site-apps-and-storage Method: POST Return type: ListAppsAndStorageResponse - name: installedEmbedApps | type: array | description: Apps with embedded scripts installed on the site. - name: consentConfigId | type: string | description: Consent config GUID. - name: name | type: string | description: App name. - name: appId | type: string | description: App GUID. - name: version | type: string | description: App version. - name: componentId | type: string | description: Component GUID. - 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 | description: Cookies configured on the site. - name: consentConfigId | type: string | description: Consent config GUID. - name: appId | type: string | description: GUID of app that owns the cookie. - name: name | type: string | description: Storage item name - 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: ' \ -H 'Content-Type: application/json' \ --data-binary '{ }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.cookieConsentPolicy.ConsentConfigsService.listAppsAndStorage() Description: Retrieves a list of installed embedded script apps that are in use on a site. Return type: PROMISE - name: installedEmbedApps | type: array | description: Apps with embedded scripts installed on the site. - name: consentConfigId | type: string | description: Consent config GUID. - name: name | type: string | description: App name. - name: appId | type: string | description: App GUID. - name: version | type: string | description: App version. - name: componentId | type: string | description: Component GUID. - 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 | description: Cookies configured on the site. - name: consentConfigId | type: string | description: Consent config GUID. - name: appId | type: string | description: GUID of app that owns the cookie. - name: name | type: string | description: Storage item name - 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-hosted) Self-hosted 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(); }; ``` ---