> 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

# ListIntakeFormDataByContacts

# Package: intakeForms

# Namespace: IntakeFormSubmissionsService

# Method link: https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-form-submissions/list-intake-form-data-by-contacts.md

## Permission Scopes:
Read Intake Form: SCOPE.INTAKE-FORM.READ

## Introduction

Retrieves intake form data for specified contacts.

Returns both intake forms without submissions and the most recent submission per contact and form ID.
If you include a deleted intake form ID in the request, that form is omitted from the response.

Call this method to see which forms each contact has submitted and which they haven't. You can use it for a single contact or many at once.

---

## REST API

### Schema

```
 Method: listIntakeFormDataByContacts
 Description: Retrieves intake form data for specified contacts.  Returns both intake forms without submissions and the most recent submission per contact and form GUID. If you include a deleted intake form GUID in the request, that form is omitted from the response.  Call this method to see which forms each contact has submitted and which they haven't. You can use it for a single contact or many at once.
 URL: https://www.wixapis.com/_api/intake-forms/v1/submissions
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactInfo
 Method parameters: 
   param name: contactInfo | type: array<contactInfo> | description: Contacts to retrieve intake form data for. | required: true | validation: minItems 1, maxItems 100
              - ONE-OF: 
                 - name: contactId | type: string | description: Contact GUID.  | validation: format GUID
                 - name: email | type: string | description: Contact's email address.  | validation: format EMAIL
   param name: fields | type: array<fields> | description: Additional fields to include in the response. Pass `INTAKE_FORM_INFO` to include `intakeFormInfo` in each returned submission.  | validation: maxItems 1
                 - enum:
                 -     INTAKE_FORM_INFO: Returns `intakeFormInfo` in the intake form submission response.
   param name: intakeFormIds | type: array<intakeFormIds> | description: Optional filter. List of intake form GUIDs to limit results to.  | validation: maxItems 20, format GUID
 Return type: ListIntakeFormDataByContactsResponse
  - name: contactIntakeFormData | type: array<ContactIntakeFormData> | description: Intake form data per contact.  
     - name: contactInfo | type: ContactInfo | description: Contact information.  
        - ONE-OF: 
           - name: contactId | type: string | description: Contact GUID.  | validation: format GUID
           - name: email | type: string | description: Contact's email address.  | validation: format EMAIL
     - name: intakeFormData | type: array<IntakeFormData> | description: Intake form data for the contact.  | validation: minItems 1, maxItems 20
        - ONE-OF: 
           - name: intakeFormInfo | type: IntakeFormInfo | description: Intake form information. Returned when the contact hasn't submitted the form.  
              - name: id | type: string | description: Intake form GUID.  | validation: format GUID
              - name: name | type: string | description: Intake form name.  | read-only: true | validation: minLength 1, maxLength 200
              - name: expirationPeriodInMonths | type: integer | description: Expiration period in months for the intake form.  | read-only: true | validation: format int32
              - name: archived | type: boolean | description: Whether the intake form is archived.  | read-only: true 
           - name: mostRecentSubmission | type: IntakeFormSubmission | description: Most recent intake form submission. Returned when the contact has submitted the form.  
              - ONE-OF: 
                 - name: canceledInfo | type: CanceledInfo | description: Information about when the submission was canceled.  | read-only: true 
                    - name: canceledDate | type: string | description: Date and time the submission was canceled in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true | validation: format date-time
                 - name: extendedInfo | type: ExtendedInfo | description: Information about when the submission was extended.  | read-only: true 
                    - name: extendedDate | type: string | description: Date and time the submission expiration date was extended in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true | validation: format date-time
              - name: id | type: string | description: Intake form submission GUID. Identical to the [Wix Forms form submission GUID](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/submission-object.md).  | read-only: true | validation: format GUID
              - name: createdDate | type: string | description: Date and time the intake form submission was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true | validation: format date-time
              - name: revision | type: string | description: Revision number, which increments by 1 each time the intake form submission is updated. To prevent conflicting changes, you must specify the current revision when updating the intake form submission.  | read-only: true | validation: format int64
              - name: signer | type: Signer | description: Information about the person who submitted the intake form.  
                 - name: contactId | type: string | description: [Contact](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/introduction.md) GUID.  | read-only: true | validation: format GUID
                 - name: fullName | type: string | description: Contact's full name.  | read-only: true | validation: minLength 1, maxLength 200
                 - name: email | type: string | description: Contact's email address.  | read-only: true | validation: format EMAIL
                 - name: submitter | type: Submitter | description: Whether the form was submitted by the customer directly or by the business on the customer's behalf.  | read-only: true 
                         - enum:
                         -     CUSTOMER: Customer submitted the form themselves.
                         -     BUSINESS: Business owner or staff submitted the form on behalf of the customer.
              - name: status | type: Status | description: Submission status.  | read-only: true 
                     - enum:
                     -     VALID: Submission is valid and hasn't expired.
                     -     EXPIRED: Submission has expired. The business must extend the submission or the contact must resubmit the form.
                     -     CANCELED: Submission was canceled. The contact must resubmit the form.
                     -     EXTENDED: The business has manually extended the submission's validity.
                     -     EXEMPT: The business has manually exempted the customer from submitting the form.
                     -     PENDING_APPROVAL: Submission is awaiting manual administrator review. Treated as not-valid by booking policies until approved.
              - name: expirationDate | type: string | description: Date and time when the submission expires in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format. Calculated from `createdDate` plus the intake form's `expirationPeriodInMonths`. You can manually extend the expiration date.  | read-only: true | validation: format date-time
              - name: intakeFormInfo | type: IntakeFormInfo | description: Intake form information.  Returned only when `INTAKE_FORM_INFO` is requested in the `fields` parameter.  
              - name: updatedDate | type: string | description: Date and time the submission status was manually updated (canceled or extended) in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true | validation: format date-time

 Possible Errors:
   HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: UNAUTHORIZED_CONTACT_ACCESS | Description: The [identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md) used to call the method doesn't have the required permissions.


```

### Examples

### List intake form data by contacts
```curl
curl -X POST \
  'https://www.wixapis.com/intake-forms/v1/intake-form-submissions' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contactInfo": [
      {
        "contactId": "770e8400-e29b-41d4-a716-446655440002"
      },
      {
        "email": "jane.smith@example.com"
      }
    ],
    "intakeFormIds": [
      "550e8400-e29b-41d4-a716-446655440000",
      "660e8400-e29b-41d4-a716-446655440001"
    ]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.intakeForms.intakeFormSubmissions.listIntakeFormDataByContacts(contactInfo, options)
 Description: Retrieves intake form data for specified contacts.  Returns both intake forms without submissions and the most recent submission per contact and form GUID. If you include a deleted intake form GUID in the request, that form is omitted from the response.  Call this method to see which forms each contact has submitted and which they haven't. You can use it for a single contact or many at once.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactInfo
 Method parameters: 
   param name: contactInfo | type: array<ContactInfo> | description: Contacts to retrieve intake form data for. | required: true | validation: minItems 1, maxItems 100
              - ONE-OF: 
                 - name: contactId | type: string | description: Contact GUID.  | validation: format GUID
                 - name: email | type: string | description: Contact's email address.  | validation: format EMAIL
   param name: options | type: ListIntakeFormDataByContactsOptions  none  
        - name: intakeFormIds | type: array<string> | description: Optional filter. List of intake form GUIDs to limit results to.  | validation: maxItems 20, format GUID
        - name: fields | type: array<RequestedFields> | description: Additional fields to include in the response. Pass `INTAKE_FORM_INFO` to include `intakeFormInfo` in each returned submission.  | validation: maxItems 1
             - enum:
             -     INTAKE_FORM_INFO: Returns `intakeFormInfo` in the intake form submission response.
 Return type: PROMISE<ListIntakeFormDataByContactsResponse>
  - name: contactIntakeFormData | type: array<ContactIntakeFormData> | description: Intake form data per contact.  
     - name: contactInfo | type: ContactInfo | description: Contact information.  
        - ONE-OF: 
           - name: contactId | type: string | description: Contact GUID.  | validation: format GUID
           - name: email | type: string | description: Contact's email address.  | validation: format EMAIL
     - name: intakeFormData | type: array<IntakeFormData> | description: Intake form data for the contact.  | validation: minItems 1, maxItems 20
        - ONE-OF: 
           - name: intakeFormInfo | type: IntakeFormInfo | description: Intake form information. Returned when the contact hasn't submitted the form.  
              - name: _id | type: string | description: Intake form GUID.  | validation: format GUID
              - name: name | type: string | description: Intake form name.  | read-only: true | validation: minLength 1, maxLength 200
              - name: expirationPeriodInMonths | type: integer | description: Expiration period in months for the intake form.  | read-only: true | validation: format int32
              - name: archived | type: boolean | description: Whether the intake form is archived.  | read-only: true 
           - name: mostRecentSubmission | type: IntakeFormSubmission | description: Most recent intake form submission. Returned when the contact has submitted the form.  
              - ONE-OF: 
                 - name: canceledInfo | type: CanceledInfo | description: Information about when the submission was canceled.  | read-only: true 
                    - name: canceledDate | type: Date | description: Date and time the submission was canceled in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true 
                 - name: extendedInfo | type: ExtendedInfo | description: Information about when the submission was extended.  | read-only: true 
                    - name: extendedDate | type: Date | description: Date and time the submission expiration date was extended in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true 
              - name: _id | type: string | description: Intake form submission GUID. Identical to the [Wix Forms form submission GUID](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/submission-object.md).  | read-only: true | validation: format GUID
              - name: _createdDate | type: Date | description: Date and time the intake form submission was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true 
              - name: revision | type: string | description: Revision number, which increments by 1 each time the intake form submission is updated. To prevent conflicting changes, you must specify the current revision when updating the intake form submission.  | read-only: true | validation: format int64
              - name: signer | type: Signer | description: Information about the person who submitted the intake form.  
                 - name: contactId | type: string | description: [Contact](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/introduction.md) GUID.  | read-only: true | validation: format GUID
                 - name: fullName | type: string | description: Contact's full name.  | read-only: true | validation: minLength 1, maxLength 200
                 - name: email | type: string | description: Contact's email address.  | read-only: true | validation: format EMAIL
                 - name: submitter | type: Submitter | description: Whether the form was submitted by the customer directly or by the business on the customer's behalf.  | read-only: true 
                         - enum:
                         -     CUSTOMER: Customer submitted the form themselves.
                         -     BUSINESS: Business owner or staff submitted the form on behalf of the customer.
              - name: status | type: Status | description: Submission status.  | read-only: true 
                     - enum:
                     -     VALID: Submission is valid and hasn't expired.
                     -     EXPIRED: Submission has expired. The business must extend the submission or the contact must resubmit the form.
                     -     CANCELED: Submission was canceled. The contact must resubmit the form.
                     -     EXTENDED: The business has manually extended the submission's validity.
                     -     EXEMPT: The business has manually exempted the customer from submitting the form.
                     -     PENDING_APPROVAL: Submission is awaiting manual administrator review. Treated as not-valid by booking policies until approved.
              - name: expirationDate | type: Date | description: Date and time when the submission expires in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format. Calculated from `createdDate` plus the intake form's `expirationPeriodInMonths`. You can manually extend the expiration date.  | read-only: true 
              - name: intakeFormInfo | type: IntakeFormInfo | description: Intake form information.  Returned only when `INTAKE_FORM_INFO` is requested in the `fields` parameter.  
              - name: _updatedDate | type: Date | description: Date and time the submission status was manually updated (canceled or extended) in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.  | read-only: true 

 Possible Errors:
   HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: UNAUTHORIZED_CONTACT_ACCESS | Description: The [identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md) used to call the method doesn't have the required permissions.


```

### Examples

### listIntakeFormDataByContacts
```javascript
import { intakeFormSubmissions } from '@wix/intake-forms';

async function listIntakeFormDataByContacts(contactInfo,options) {
  const response = await intakeFormSubmissions.listIntakeFormDataByContacts(contactInfo,options);
};
```

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

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


async function listIntakeFormDataByContacts(contactInfo,options) {
  const response = await myWixClient.intakeFormSubmissions.listIntakeFormDataByContacts(contactInfo,options);
};
```

---