> 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

# ListAnswers

# Package: memberManagement

# Namespace: MembershipQuestionsService

# Method link: https://dev.wix.com/docs/api-reference/crm/community/groups/member-management/membership-questions/list-answers.md

## Introduction

Retrieves the answers to the membership questions, given the provided filters.

>**Note:**
>This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities.md).

---

## REST API

### Schema

```
 Method: listAnswers
 Description: Retrieves the answers to the membership questions, given the provided filters.  >**Note:** >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities.md).
 URL: https://www.wixapis.com/social-groups-proxy/questions/v2/membership-questions/{groupId}/answers
 Method: POST
 Method parameters:
   param name: memberIds | type: array<memberIds> | description: Member GUIDs. If no member GUID is provided, answers for all members will be returned. See the Members API for more details.  | validation: maxItems 500, format GUID
   param name: paging | type: Paging    
        - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, format int32
        - name: offset | type: integer | description: Number of items to skip in the current sort order.  | validation: minimum 0, format int32
 Return type: ListAnswersResponse
  - name: memberAnswers | type: array<MemberMembershipQuestionAnswers> | description: Answers to the membership questions, grouped by member.  
     - name: memberId | type: string | description: Member GUID. See the Members API for more details.  | validation: format GUID
     - name: answers | type: array<MembershipQuestionAnswer> | description: Answers to the membership question.  
        - name: id | type: string | description: Question GUID.  | validation: format GUID
        - name: text | type: string | description: Answer text.  | validation: minLength 0, maxLength 300
  - name: questions | type: Map<string,MembershipQuestion> | description: Membership questions by question GUID. Includes only questions that have been answered by the specified members.  | validation: format map
     - name: id | type: string | description: Question GUID.  | read-only: true | validation: format GUID
     - name: required | type: boolean | description: Whether a member must answer this question when joining the group.  
     - name: text | type: string | description: Question text.  | validation: minLength 1, maxLength 300
  - name: metadata | type: PagingMetadata | description:   
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  


```

### Examples

### ListAnswers
```curl
~~~cURL
curl -X GET \
    https://wixapis.com/social-groups/v2/membership-questions/707c1e28-c111-46e1-bafa-4e97c8fa490f/answers \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Authorization: <AUTH>'
s
~~~
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.groups.membershipQuestions.listAnswers(groupId, options)
 Description: Retrieves the answers to the membership questions, given the provided filters.  >**Note:** >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  groupId
 Method parameters: 
   param name: groupId | type: string | description: Group GUID. | required: true | validation: format GUID
   param name: options | type: ListAnswersOptions  none  
        - name: memberIds | type: array<string> | description: Member GUIDs. If no member GUID is provided, answers for all members will be returned. See the Members API for more details.  | validation: maxItems 500, format GUID
        - name: paging | type: Paging | description:   
           - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, format int32
           - name: offset | type: integer | description: Number of items to skip in the current sort order.  | validation: minimum 0, format int32
 Return type: PROMISE<ListAnswersResponse>
  - name: memberAnswers | type: array<MemberMembershipQuestionAnswers> | description: Answers to the membership questions, grouped by member.  
     - name: memberId | type: string | description: Member GUID. See the Members API for more details.  | validation: format GUID
     - name: answers | type: array<MembershipQuestionAnswer> | description: Answers to the membership question.  
        - name: _id | type: string | description: Question GUID.  | validation: format GUID
        - name: text | type: string | description: Answer text.  | validation: minLength 0, maxLength 300
  - name: questions | type: Map<string,MembershipQuestion> | description: Membership questions by question GUID. Includes only questions that have been answered by the specified members.  | validation: format map
     - name: _id | type: string | description: Question GUID.  | read-only: true | validation: format GUID
     - name: required | type: boolean | description: Whether a member must answer this question when joining the group.  
     - name: text | type: string | description: Question text.  | validation: minLength 1, maxLength 300
  - name: metadata | type: PagingMetadata | description:   
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  


```

### Examples

### listAnswers
```javascript
import { membershipQuestions } from '@wix/groups';

async function listAnswers(groupId,options) {
  const response = await membershipQuestions.listAnswers(groupId,options);
};
```

### listAnswers (with elevated permissions)
```javascript
import { membershipQuestions } from '@wix/groups';
import { auth } from '@wix/essentials';

async function myListAnswersMethod(groupId,options) {
  const elevatedListAnswers = auth.elevate(membershipQuestions.listAnswers);
  const response = await elevatedListAnswers(groupId,options);
}
```

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

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


async function listAnswers(groupId,options) {
  const response = await myWixClient.membershipQuestions.listAnswers(groupId,options);
};
```

---