Submissions API
Read the submissions of a form, add new ones from your own code, and delete them. New to the API? Start with the overview.
List Submissions
GET /api/v1/forms/{form}/submissions Bronze Plan
Returns a form's submissions, newest first.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
limit |
query | integer | No | How many submissions to return, at most 500. Without it you get up to 5,000. |
page |
query | integer | No | The page to return. Default 1. |
mode |
query | string | No | production for live submissions, or development for the ones made in test mode. Default: the mode the form is in. |
spam |
query | string | No | Send spam to get the submissions in the spam folder instead. |
curl "https://kwesforms.com/api/v1/forms/7/submissions?limit=50&page=1" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
Each submission has its details first, then the visitor's browser, then one value per form field. A file upload field holds a link to the file. A repeater field holds a list with one object per row.
[
{
"id": 1042,
"user_id": 4,
"website_id": 13,
"form_id": 7,
"ip_address": "203.0.113.24",
"from_domain": "https://myfavoritewebsite.com",
"date_submitted": "2026-11-23T18:47:35.000000Z",
"updated_at": "2026-11-23T18:47:36.000000Z",
"kwes_uuid": "123e4567-e89b-12d3-a456-426614174000",
"browser_name": "Chrome",
"browser_version": "142",
"os_name": "Mac",
"os_version": "10.15.7",
"device_name": "Desktop",
"name": "John Doe",
"email": "john@example.com",
"message": "This is a full submission"
}
]
To get every submission, ask for page after page until one comes back with fewer than limit submissions.
Get a Submission
GET /api/v1/forms/{form}/submissions/{id} Bronze Plan
Returns one submission. Unlike the list, it has the form's values in form_data and the visitor's browser in user_data.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
id |
path | integer | Yes | The submission's ID. |
curl "https://kwesforms.com/api/v1/forms/7/submissions/1042" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
{
"id": 1042,
"user_id": 4,
"website_id": 13,
"form_id": 7,
"user_data": {
"browser_name": "Chrome",
"browser_version": "142",
"os_name": "Mac",
"os_version": "10.15.7",
"device_name": "Desktop"
},
"form_data": {
"name": "John Doe",
"email": "john@example.com",
"message": "This is a full submission"
},
"repeater_fields": [],
"file_upload_fields": [],
"ip_address": "203.0.113.24",
"from_domain": "https://myfavoritewebsite.com",
"date_submitted": "2026-11-23T18:47:35.000000Z",
"updated_at": "2026-11-23T18:47:36.000000Z",
"kwes_uuid": "123e4567-e89b-12d3-a456-426614174000"
}
| Status | Message | Why |
|---|---|---|
404 |
Submission not found on this form. |
The form has no submission with that ID. |
Create a Submission
POST /api/v1/forms/{form}/submissions Bronze Plan
Adds a submission to a form, as if a visitor had filled it in. Send the form's fields in the body, by name.
Before you use it:
- The form needs rules. If your form does not use the KwesForms script, set its rules first.
- The
X-Requested-With: XMLHttpRequestheader is required. - If the form's spam filters are on, send an
Originheader with the address of the website the submission comes from. Without anOriginorRefererheader the submission is treated as spam.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
| Your form's fields | body | One value per field, checked against the form's rules. | ||
kwes_uuid |
body | string | No | A UUID that identifies the submission. Only send it to save a submission in steps, see below. |
curl -X POST "https://kwesforms.com/api/v1/forms/7/submissions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Requested-With: XMLHttpRequest" \
-H "Origin: https://myfavoritewebsite.com" \
-d '{
"name": "John Doe",
"email": "john@example.com",
"message": "This is a full submission"
}'
{
"status": "success",
"kwes_uuid": "123e4567-e89b-12d3-a456-426614174000",
"is_update": false,
"submission_id": 1042
}
The reply comes before the submission is processed. Once it is, the form's emails and webhooks go out as they do for any other submission. A submission that is over your plan's limit is not kept, and one that is caught as spam moves to the spam folder under a new ID.
Saving a Submission in Steps
To save a long form one step at a time, send the same kwes_uuid with every step. Use the one from the first reply, or create a UUID yourself and send it from the first step on.
- A call with the
kwes_uuidof an existing submission adds its values to that submission, and replies with"is_update": trueand the samesubmission_id. - When you send
kwes_uuid, only the fields in that call are checked, andrequiredrules are skipped. Empty values are not saved.
curl -X POST "https://kwesforms.com/api/v1/forms/7/submissions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Requested-With: XMLHttpRequest" \
-H "Origin: https://myfavoritewebsite.com" \
-d '{
"kwes_uuid": "123e4567-e89b-12d3-a456-426614174000",
"phone": "555-0100"
}'
Errors
This call's errors also have "status": "error", and some have a code.
| Status | Message | Why |
|---|---|---|
400 |
This endpoint is only available via AJAX. |
The X-Requested-With: XMLHttpRequest header is missing. |
400 |
This endpoint is only available for forms created with store_version 2. |
This call is not available for this form's account. Contact support. |
409 |
This kwes_uuid is not unique. Make sure you are not reusing a previous kwes_uuid. |
The kwes_uuid belongs to a submission of another form. The code is KWES_UUID_NOT_UNIQUE. |
422 |
Form validation rules have not been set. You must first set the validation rules using the /rules endpoint before submitting the form. |
The form has no rules yet. The code is VALIDATION_RULES_NOT_SET. |
422 |
Invalid UUID format |
kwes_uuid is not a UUID. |
422 |
Validation failed for submitted fields |
A value breaks one of the form's rules. errors has the messages per field. |
| Varies | Form submission failed |
The submission could not be accepted. details has the reason. |
500 |
An error occurred while processing your submission |
Something went wrong on our side. |
Delete a Submission
DELETE /api/v1/forms/{form}/submissions/{id} Bronze Plan
Deletes a submission. Its values, IP address and browser details are erased, and this cannot be undone.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
id |
path | integer | Yes | The submission's ID. |
curl -X DELETE "https://kwesforms.com/api/v1/forms/7/submissions/1042" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
{
"message": "You have successfully deleted the submission."
}
Notice anything wrong in our docs? Let us know.