> 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

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction.md

## Article Content:

# About Form Submissions

With Wix Form Submissions, site owners can manage individual form submissions from site visitors.

The Form Submissions API provides flexibility in managing form submission data and allows your app to:

- Query and manage submissions for a specified form.
- Retrieve the total number of submissions per form.
- Support the ability to upload media files to a [media manager folder](https://dev.wix.com/docs/api-reference/assets/media/media-manager/introduction.md) when forms include "file upload" fields.


Learn more about [Wix Forms](https://support.wix.com/en/article/wix-forms-an-overview). 

## Before you begin

- The Form Submission API only works with the Wix Forms app. Call [GetAppInstance](https://dev.wix.com/docs/api-reference/app-management/app-instance/get-app-instance.md) to confirm that the app named `wix_forms` is installed on the site.

For which keys `submissions` accepts and the value each field type submits, see [About Submission Values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/about-submission-values.md).

## Validation errors

When a submission fails validation, the error details carry 1 entry per failed value. Each entry has:

- `errorPath`: which value failed. For a top-level field this is the field's `target`, such as `email`. For a value nested inside a field the path continues with `/`, such as `address/postal_code`, or `attachments/0/fileId` for an element of an array field.
- `errorType`: what kind of failure it was, such as `REQUIRED_VALUE_ERROR`, `MAX_LENGTH_ERROR`, or `UNKNOWN_VALUE_ERROR`.
- `errorMessage`: an English description from the schema validator, meant for debugging.
- `params`: additional detail about the failure, such as the offending property name.

Map errors back to your inputs on `errorPath`, and decide what to show from `errorType`. Don't parse `errorMessage` or show it to submitters: it's the validator's own wording, it isn't localized, and it can change.

A single rejected value fails the whole submission. In particular, a key that isn't a field `target` in the schema is rejected as `UNKNOWN_VALUE_ERROR`, so a stray key fails a submission whose other values are all valid.

## Submission status

Creating a submission doesn't always record it. The status it starts in depends on the form's namespace and on whether the form collects payment, so read `status` from the response instead of assuming:

| Status on creation | When |
|---|---|
| `CONFIRMED` | The submission is recorded and visible to the Wix user. Most namespaces, including Wix Forms, create submissions this way. |
| `PAYMENT_WAITING` | The form collects payment and the submission includes products. |
| `PENDING` | The namespace completes another step before recording the submission, such as taking payment for a pricing plan. |

A `PENDING` submission isn't recorded yet and isn't shown to the Wix user. It becomes `CONFIRMED` through [Confirm Submission](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/confirm-submission.md), and is deleted automatically if it isn't confirmed in time. For a namespace that records submissions immediately, no confirmation call is needed.

## Use cases

- [Submit a form with media](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/sample-flows.md#submit-a-form-with-media)
- [Periodically sync with an external analysis and reporting tool](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/sample-flows.md#periodically-sync-with-an-external-analysis-and-reporting-tool)
- [Sync with an external CRM for marketing purposes](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/sample-flows.md#sync-with-an-external-crm-for-marketing-purposes)

## Terminology

- **Submission:** Data received when a site visitor submits a form.
- **Media Upload URL:** A URL used to upload a file to a form. 
- **Namespace:** The app that a form belongs to. 

