> 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

# GetMembersCustomFieldApplications

# Package: customFields

# Namespace: CustomFieldApplications

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/custom-fields/custom-field-applications/get-members-custom-field-applications.md

## Introduction

Retrieves a list of fields that are applied to specified members.

---

## REST API

### Schema

```
 Method: getMembersCustomFieldApplications
 Description: Retrieves a list of fields that are applied to specified members.
 URL: https://www.wixapis.com/members/v1/custom-fields-applications/members
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  memberIds
 Method parameters: 
   param name: memberIds | type: array<memberIds> | description: IDs of members with custom field applications to retrieve. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: GetMembersCustomFieldApplicationsResponse
  - name: results | type: array<MemberCustomFieldApplication> | description: Retrieved list of custom field applications.  
     - name: memberId | type: string | description: Member GUID.  | validation: format GUID
     - name: applications | type: array<FieldApplication> | description: Custom field applications for the member.  
        - name: customFieldKey | type: string | description: Custom field key.  | read-only: true 
        - name: applies | type: boolean | description: Whether the custom field applies to the member.  
        - name: customField | type: CustomField | description: Custom field details.  
           - name: id | type: string | description: Custom field GUID.  | read-only: true | validation: format GUID
           - name: name | type: string | description: Custom field title.  | validation: minLength 1, maxLength 150
           - name: key | type: string | description: Custom field key.  | read-only: true 
           - name: defaultPrivacy | type: Privacy | description: Privacy level of the custom field.  
                 - enum:
                 -     UNKNOWN: Unknown privacy. This value isn't used.
                 -     PUBLIC: The information appears on the members' public profile pages.
                 -     PRIVATE: Only the member can see this information.
           - name: fieldType | type: Type | description: Type of information to provide for members.  
                 - enum:
                 -     UNKNOWN: Unknown field type. This value isn't used.
                 -     TEXT: A text box to write text.
                 -     NUMBER: Only a number can be entered into the field.
                 -     DATE: Only a date can be entered into the field.
                 -     URL: Only a URL can be entered into the field.
                 -     SOCIAL: Only a link from the selected social media platform can be entered into the field.
           - name: socialType | type: Type | description: Social network type.  
                 - enum:
                 -     UNKNOWN: Unknown social type. This value isn't used.
                 -     FACEBOOK: Facebook social media platform.
                 -     INSTAGRAM: Instagram social media platform.
                 -     LINKEDIN: LinkedIn social media platform.
                 -     TWITTER: X (formerly Twitter) social media platform.
                 -     YOUTUBE: Youtube social media platform.
                 -     PINTEREST: Pinterest social media platform.
                 -     TIKTOK: TikTok social media platform.
                 -     DEVIANTART: DeviantArt social media platform.
                 -     SOUNDCLOUD: SoundCloud social media platform.
                 -     TUMBLR: Tumblr social media platform.
                 -     VIMEO: Vimeo social media platform.
                 -     VKONTAKTE: VKontakte social media platform.
                 -     ODNOKLASSNIKI: Odnoklassniki social media platform.
                 -     OTHER: Other social media platform.
           - name: fieldOrigin | type: Origin | description: Field origin.  | read-only: true 
                 - enum:
                 -     UNKNOWN: Unknown field origin. This value isn't used.
                 -     CUSTOM: Custom field created by a Wix user.
                 -     CONTACT: Contact type of field. These are default fields that are already provided by Members Area, such as: "birth date", "position", "company".
                 -     SYSTEM: System fields, such as: "first name", "last name", "email", "phone", "address", and  "title". Some system fields are only available from the dashboard.
           - name: appliesTo | type: AppliesTo | description: Which members will have the custom field in their profile.  | read-only: true 
                 - enum:
                 -     ALL_MEMBERS: Everyone will have this field.
                 -     SELECTED_MEMBERS: Only selected members will have this field. See the [Custom Field Application API](https://dev.wix.com/docs/rest/crm/members-contacts/members/custom-fields/custom-field-applications/introduction.md) for more information.
           - name: section | type: Section | description: A section which the field belongs to.  | read-only: true 
                 - enum:
                 -     GENERAL: General section. All custom fields and the following default fields are assigned to this section: "first name", "last name", "email", "phone", "birth date", "position", "company".
                 -     SOCIAL: Social media section. The "social media" field is assigned to this section.
                 -     DISPLAY_INFO: Display info section. The default "title" field is assigned to this section.
                 -     ADDRESS: Address section. The default "address" field is assigned to this section.
           - name: createdDate | type: string | description: Date and time when the field was created.  | read-only: true | validation: format date-time
           - name: updatedDate | type: string | description: Date and time when the field was updated.  | read-only: true | validation: format date-time
           - name: revision | type: string | description: Revision number, which increments by 1 each time the custom field is updated. To prevent conflicting changes, the existing revision must be used when updating a custom field.  | validation: format uint64


```

### Examples

### Get members custom field applications
```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/custom-fields-applications/members \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'Authorization: <AUTH>'
  -d '{
        "memberIds": [
          "9e4f34b3-ebb8-49ee-a342-057d7e70cf5d"
        ]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.customFieldApplications.getMembersCustomFieldApplications(memberIds)
 Description: Retrieves a list of fields that are applied to specified members.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  memberIds
 Method parameters: 
   param name: memberIds | type: array<string> | description: IDs of members with custom field applications to retrieve. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: PROMISE<GetMembersCustomFieldApplicationsResponse>
  - name: results | type: array<MemberCustomFieldApplication> | description: Retrieved list of custom field applications.  
     - name: memberId | type: string | description: Member GUID.  | validation: format GUID
     - name: applications | type: array<FieldApplication> | description: Custom field applications for the member.  
        - name: customFieldKey | type: string | description: Custom field key.  | read-only: true 
        - name: applies | type: boolean | description: Whether the custom field applies to the member.  
        - name: customField | type: CustomField | description: Custom field details.  
           - name: _id | type: string | description: Custom field GUID.  | read-only: true | validation: format GUID
           - name: name | type: string | description: Custom field title.  | validation: minLength 1, maxLength 150
           - name: key | type: string | description: Custom field key.  | read-only: true 
           - name: defaultPrivacy | type: Privacy | description: Privacy level of the custom field.  
                 - enum:
                 -     UNKNOWN: Unknown privacy. This value isn't used.
                 -     PUBLIC: The information appears on the members' public profile pages.
                 -     PRIVATE: Only the member can see this information.
           - name: fieldType | type: Type | description: Type of information to provide for members.  
                 - enum:
                 -     UNKNOWN: Unknown field type. This value isn't used.
                 -     TEXT: A text box to write text.
                 -     NUMBER: Only a number can be entered into the field.
                 -     DATE: Only a date can be entered into the field.
                 -     URL: Only a URL can be entered into the field.
                 -     SOCIAL: Only a link from the selected social media platform can be entered into the field.
           - name: socialType | type: Type | description: Social network type.  
                 - enum:
                 -     UNKNOWN: Unknown social type. This value isn't used.
                 -     FACEBOOK: Facebook social media platform.
                 -     INSTAGRAM: Instagram social media platform.
                 -     LINKEDIN: LinkedIn social media platform.
                 -     TWITTER: X (formerly Twitter) social media platform.
                 -     YOUTUBE: Youtube social media platform.
                 -     PINTEREST: Pinterest social media platform.
                 -     TIKTOK: TikTok social media platform.
                 -     DEVIANTART: DeviantArt social media platform.
                 -     SOUNDCLOUD: SoundCloud social media platform.
                 -     TUMBLR: Tumblr social media platform.
                 -     VIMEO: Vimeo social media platform.
                 -     VKONTAKTE: VKontakte social media platform.
                 -     ODNOKLASSNIKI: Odnoklassniki social media platform.
                 -     OTHER: Other social media platform.
           - name: fieldOrigin | type: Origin | description: Field origin.  | read-only: true 
                 - enum:
                 -     UNKNOWN: Unknown field origin. This value isn't used.
                 -     CUSTOM: Custom field created by a Wix user.
                 -     CONTACT: Contact type of field. These are default fields that are already provided by Members Area, such as: "birth date", "position", "company".
                 -     SYSTEM: System fields, such as: "first name", "last name", "email", "phone", "address", and  "title". Some system fields are only available from the dashboard.
           - name: appliesTo | type: AppliesTo | description: Which members will have the custom field in their profile.  | read-only: true 
                 - enum:
                 -     ALL_MEMBERS: Everyone will have this field.
                 -     SELECTED_MEMBERS: Only selected members will have this field. See the [Custom Field Application API](https://dev.wix.com/docs/rest/crm/members-contacts/members/custom-fields/custom-field-applications/introduction.md) for more information.
           - name: section | type: Section | description: A section which the field belongs to.  | read-only: true 
                 - enum:
                 -     GENERAL: General section. All custom fields and the following default fields are assigned to this section: "first name", "last name", "email", "phone", "birth date", "position", "company".
                 -     SOCIAL: Social media section. The "social media" field is assigned to this section.
                 -     DISPLAY_INFO: Display info section. The default "title" field is assigned to this section.
                 -     ADDRESS: Address section. The default "address" field is assigned to this section.
           - name: _createdDate | type: Date | description: Date and time when the field was created.  | read-only: true 
           - name: _updatedDate | type: Date | description: Date and time when the field was updated.  | read-only: true 
           - name: revision | type: string | description: Revision number, which increments by 1 each time the custom field is updated. To prevent conflicting changes, the existing revision must be used when updating a custom field.  | validation: format uint64


```

### Examples

### getMembersCustomFieldApplications
```javascript
import { customFieldApplications } from '@wix/members';

async function getMembersCustomFieldApplications(memberIds) {
  const response = await customFieldApplications.getMembersCustomFieldApplications(memberIds);
};
```

### getMembersCustomFieldApplications (with elevated permissions)
```javascript
import { customFieldApplications } from '@wix/members';
import { auth } from '@wix/essentials';

async function myGetMembersCustomFieldApplicationsMethod(memberIds) {
  const elevatedGetMembersCustomFieldApplications = auth.elevate(customFieldApplications.getMembersCustomFieldApplications);
  const response = await elevatedGetMembersCustomFieldApplications(memberIds);
}
```

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

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


async function getMembersCustomFieldApplications(memberIds) {
  const response = await myWixClient.customFieldApplications.getMembersCustomFieldApplications(memberIds);
};
```

---