> 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

## Resource: Sample Flows

## Article: Sample Flows

## Article Link: https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/sample-flows.md

## Article Content:

# Feedback Sessions API: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

## Collect client feedback on a site before handover

You've finished building a site for a client and want them to review it before it goes live. You give them a link that stays open for the review period, then work through what they left.

To collect client feedback on a site:

1. Call [Create Feedback Session](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/create-feedback-session.md) with an `expirationDate` at the end of the review period, and `fields` set to `SHARE_URL`:

    ```json
    {
      "feedbackSession": { "expirationDate": "2026-10-12T00:00:00.000Z" },
      "fields": ["SHARE_URL"]
    }
    ```

1. Send the returned `shareUrl` to the client. They review the site and leave comments through it.
1. Call [Query Comments](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/comment-v1/query-comments.md), filtering on `feedbackId` with the feedback session's `id`, to retrieve the comments left through the session.
1. Triage and reply to each comment with the [Comments API](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/comment-v1/introduction.md).

## List the review links still collecting feedback

A site can have several feedback sessions open at once, for example one per stakeholder. You want to show the ones that still accept comments, with a link to each, so a teammate can resend a link or see what's open.

To list the review links still collecting feedback:

1. Call [Query Feedback Sessions](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/query-feedback-sessions.md), filtering on `expirationDate` later than now, and with `fields` set to `SHARE_URL`:

    ```json
    {
      "query": {
        "filter": { "expirationDate": { "$gt": "2026-09-28T00:00:00.000Z" } },
        "sort": [{ "fieldName": "expirationDate", "order": "ASC" }]
      },
      "fields": ["SHARE_URL"]
    }
    ```

1. Page through the results with the `cursors.next` value returned in `pagingMetadata`, and display each session's `shareUrl` and `expirationDate`.

## Clean up expired feedback sessions

Old review rounds pile up on a site you keep iterating on. You want to remove the feedback sessions that no longer accept comments, while keeping the comments left through them.

To clean up expired feedback sessions:

1. Call [Query Feedback Sessions](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/query-feedback-sessions.md), filtering on `expirationDate` earlier than now.
1. Page through the results with the `cursors.next` value returned in `pagingMetadata`, collecting every session's `id`.
1. Call [Delete Feedback Session](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/feedback-session-v1/delete-feedback-session.md) for each collected session. The comments left through it remain, and you can still retrieve them with [Query Comments](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/feedback/comment-v1/query-comments.md).