> 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

# ListAppPermissions

# Package: appPermissions

# Namespace: AppPermissionsService

# Method link: https://dev.wix.com/docs/api-reference/app-management/app-permissions/list-app-permissions.md

## Introduction

Lists all permissions for the specified app.

These are the permissions your app requests when users install it on a site.

---

## REST API

### Schema

```
 Method: listAppPermissions
 Description: Lists all permissions for the specified app.  These are the permissions your app requests when users install it on a site.
 URL: https://www.wixapis.com/apps/v1/app-permissions/v1/app-permissions
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  appId
 Method parameters: 
   query param name: appId | type: appId | description: App GUID.  You can find the app GUID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard. | required: true | validation: format GUID
   query param name: consistent | type: consistent | description: Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.  Default: `false`.  
   param name: paging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: ListAppPermissionsResponse
  - name: appPermissions | type: array<AppPermission> | description: List of permissions for the specified app.  
     - name: appId | type: string | description: App GUID.  You can find the app GUID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).  | validation: format GUID
     - name: permission | type: Permission | description: Permission the app requests when installed on a site.  Learn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  
        - name: permissionId | type: string | description: Permission GUID.  To find the permission GUID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app.md#step-1--identify-required-permissions).  | validation: minLength 1, maxLength 164
     - name: createdDate | type: string | description: When the permission was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: When the permission was last updated.  | read-only: true | validation: format date-time
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### List an app's permissions
```curl
curl -X GET \
  'https://www.wixapis.com/apps/v1/app-permissions/v1/app-permissions?appId=73b98f4e-a8f3-4b7c-9d87-23fc55a793ec&consistent' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.appManagement.appPermissions.listAppPermissions(appId, options)
 Description: Lists all permissions for the specified app.  These are the permissions your app requests when users install it on a site.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  appId
 Method parameters: 
   param name: appId | type: string | description: App GUID.  You can find the app GUID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard. | required: true | validation: format GUID
   param name: options | type: ListAppPermissionsOptions  none  
        - name: consistent | type: boolean | description: Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.  Default: `false`.  
        - name: paging | type: CursorPaging | description: Paging configuration.  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
           - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: PROMISE<ListAppPermissionsResponse>
  - name: appPermissions | type: array<AppPermission> | description: List of permissions for the specified app.  
     - name: appId | type: string | description: App GUID.  You can find the app GUID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).  | validation: format GUID
     - name: permission | type: Permission | description: Permission the app requests when installed on a site.  Learn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions.md).  
        - name: permissionId | type: string | description: Permission GUID.  To find the permission GUID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app.md#step-1--identify-required-permissions).  | validation: minLength 1, maxLength 164
     - name: _createdDate | type: Date | description: When the permission was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: When the permission was last updated.  | read-only: true 
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### listAppPermissions
```javascript
import { appPermissions } from '@wix/app-management';

async function listAppPermissions(appId,options) {
  const response = await appPermissions.listAppPermissions(appId,options);
};
```

### listAppPermissions (with elevated permissions)
```javascript
import { appPermissions } from '@wix/app-management';
import { auth } from '@wix/essentials';

async function myListAppPermissionsMethod(appId,options) {
  const elevatedListAppPermissions = auth.elevate(appPermissions.listAppPermissions);
  const response = await elevatedListAppPermissions(appId,options);
}
```

### listAppPermissions (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 { appPermissions } from '@wix/app-management';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function listAppPermissions(appId,options) {
  const response = await myWixClient.appPermissions.listAppPermissions(appId,options);
};
```

---