> 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

# QueryFeedbackSessions

# Package: feedback

# Namespace: FeedbackSessions

# Method link: https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/query-feedback-sessions.md

## Permission Scopes:
Read Site Feedback: SCOPE.PARTNERS.FEEDBACK_READ

## Introduction

Retrieves a list of up to 100 feedback sessions, given the provided paging, filtering, and sorting.

Query Feedback Sessions runs with these defaults, which you can override:

- `id` is sorted in `ASC` order
- `cursorPaging.limit` is `50`

To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md).

---

## REST API

### Schema

```
 Method: queryFeedbackSessions
 Description: Retrieves a list of up to 100 feedback sessions, given the provided paging, filtering, and sorting.  Query Feedback Sessions runs with these defaults, which you can override:  - `id` is sorted in `ASC` order - `cursorPaging.limit` is `50`  To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md).
 URL: https://www.wixapis.com/partners/feedback/v1/feedback-sessions/query
 Method: POST
 Method parameters:
   param name: fields | type: array<fields> | description: Additional fields to return for each feedback session in the response.  | validation: maxItems 1
                 - enum:
                 -     SHARE_URL: Returns `shareUrl`.
   param name: query | type: CursorQuery    
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - 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
        - name: filter | type: object | description: Filter object.  Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-filter-section).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-sort-section).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
 Query fields:
   - field: id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: expirationDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
 Return type: QueryFeedbackSessionsResponse
  - name: feedbackSessions | type: array<FeedbackSession> | description: Retrieved feedback sessions.  
     - name: id | type: string | description: Feedback session GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number of the feedback session.  A feedback session can't be updated once created. Ignored when creating a feedback session.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the feedback session was created.  | read-only: true | validation: format date-time
     - name: expirationDate | type: string | description: Date and time after which the feedback session stops accepting new comments.  Comments already left through the session stay readable, and can still be triaged and replied to. Can be set only when creating the feedback session.  Default: 14 days after creation  | validation: format date-time
     - name: shareUrl | type: string | description: URL to share with reviewers. Anyone with the URL can review the site and leave comments through the feedback session.  Returned only when the request's `fields` includes `SHARE_URL`. Always returned by Create Feedback Session when requested. Other methods don't return it while the site has no URL, or when the site's URL can't be retrieved. To retry, call [Get Feedback Session](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/get-feedback-session.md) with `fields` set to `SHARE_URL`.  | read-only: true | validation: format WEB_URL
  - 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

### Query Feedback Sessions
Retrieves the feedback sessions that still accept comments, soonest to expire first, with the URL to share with reviewers

```curl
curl -X POST \
'https://www.wixapis.com/partners/feedback/v1/feedback-sessions/query' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "query": {
    "filter": {
      "expirationDate": { "$gt": "2026-09-28T00:00:00.000Z" }
    },
    "sort": [
      { "fieldName": "expirationDate", "order": "ASC" }
    ],
    "cursorPaging": { "limit": 50 }
  },
  "fields": ["SHARE_URL"]
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.feedback.feedbackSessions.queryFeedbackSessions(query, options)
 Description: Retrieves a list of up to 100 feedback sessions, given the provided paging, filtering, and sorting.  Query Feedback Sessions runs with these defaults, which you can override:  - `id` is sorted in `ASC` order - `cursorPaging.limit` is `50`  To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: options | type: QueryFeedbackSessionsOptions  none  
        - name: fields | type: array<RequestedFields> | description: Additional fields to return for each feedback session in the response.  | validation: maxItems 1
             - enum:
             -     SHARE_URL: Returns `shareUrl`.
   param name: query | type: FeedbackSessionQuery   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - 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
        - name: filter | type: object | description: Filter object.  Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-filter-section).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-sort-section).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
 Query fields:
   - field: _id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: _createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: expirationDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
 Return type: PROMISE<QueryFeedbackSessionsResponse>
  - name: feedbackSessions | type: array<FeedbackSession> | description: Retrieved feedback sessions.  
     - name: _id | type: string | description: Feedback session GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number of the feedback session.  A feedback session can't be updated once created. Ignored when creating a feedback session.  | read-only: true | validation: format int64
     - name: _createdDate | type: Date | description: Date and time the feedback session was created.  | read-only: true 
     - name: expirationDate | type: Date | description: Date and time after which the feedback session stops accepting new comments.  Comments already left through the session stay readable, and can still be triaged and replied to. Can be set only when creating the feedback session.  Default: 14 days after creation  
     - name: shareUrl | type: string | description: URL to share with reviewers. Anyone with the URL can review the site and leave comments through the feedback session.  Returned only when the request's `fields` includes `SHARE_URL`. Always returned by Create Feedback Session when requested. Other methods don't return it while the site has no URL, or when the site's URL can't be retrieved. To retry, call [Get Feedback Session](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/get-feedback-session.md) with `fields` set to `SHARE_URL`.  | read-only: true | validation: format WEB_URL
  - 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

### Query feedback sessions
Retrieves the feedback sessions that still accept comments, soonest to expire first, with the URL to share with reviewers

```javascript
import { feedbackSessions } from "@wix/feedback";

async function queryFeedbackSessions() {
  const response = await feedbackSessions.queryFeedbackSessions(
    {
      filter: { expirationDate: { $gt: "2026-09-28T00:00:00.000Z" } },
      sort: [{ fieldName: "expirationDate", order: "ASC" }],
      cursorPaging: { limit: 50 },
    },
    {
      fields: ["SHARE_URL"],
    },
  );
}

/* Promise resolves to:
 * {
 *   "feedbackSessions": [
 *     {
 *       "_id": "b93e1f07-2c4a-4e68-9f15-6d0a3b7c8e29",
 *       "revision": "1",
 *       "_createdDate": "2026-09-21T14:03:52.118Z",
 *       "expirationDate": "2026-10-05T14:03:52.118Z",
 *       "shareUrl": "https://www.lumen-studio.com/__partners-feedback/client/b93e1f07-2c4a-4e68-9f15-6d0a3b7c8e29"
 *     },
 *     {
 *       "_id": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
 *       "revision": "1",
 *       "_createdDate": "2026-09-28T09:12:10.299Z",
 *       "expirationDate": "2026-10-12T00:00:00.000Z",
 *       "shareUrl": "https://www.lumen-studio.com/__partners-feedback/client/8046df3c-7575-4098-a5ab-c91ad8f33c47"
 *     }
 *   ],
 *   "pagingMetadata": {
 *     "count": 2,
 *     "hasNext": false
 *   }
 * }
 */

```

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

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


async function queryFeedbackSessions(query,options) {
  const response = await myWixClient.feedbackSessions.queryFeedbackSessions(query,options);
};
```

---