Forms API
Read your forms and their settings, and on a Platinum plan create, change and delete them. New to the API? Start with the overview.
Only a form's owner can use it through the API. A form belongs to the owner of its website.
List Forms
GET /api/v1/forms Bronze Plan
Returns all the forms you own. Forms of websites that are shared with you are not included.
curl "https://kwesforms.com/api/v1/forms" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
[
{
"id": 7,
"website_id": 13,
"name": "Contact Form",
"redirect_url": "https://myfavoritewebsite.com/thank-you",
"locale": "en",
"spam_filters": true,
"action": "https://kwesforms.com/api/foreign/forms/6WtWzzN1A3LnpBML3pqr",
"created_at": "2026-11-23T18:47:37.000000Z",
"updated_at": "2026-11-23T18:47:37.000000Z"
}
]
action is the address to put in the action attribute of your HTML form.
Get a Form
GET /api/v1/forms/{form} Bronze Plan
Returns one form.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
curl "https://kwesforms.com/api/v1/forms/7" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
{
"id": 7,
"website_id": 13,
"name": "Contact Form",
"redirect_url": "https://myfavoritewebsite.com/thank-you",
"locale": "en",
"spam_filters": true,
"action": "https://kwesforms.com/api/foreign/forms/6WtWzzN1A3LnpBML3pqr",
"created_at": "2026-11-23T18:47:37.000000Z",
"updated_at": "2026-11-23T18:47:37.000000Z"
}
Create a Form
POST /api/v1/forms Platinum Plan
Creates a form on one of your websites.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
website_id |
body | integer | Yes | The ID of one of your websites. |
name |
body | string | Yes | The form's name. At most 191 characters. |
spam_filters |
body | boolean | Yes | Whether the form's spam filters are on. |
redirect_url |
body | string | No | The address visitors are sent to after they submit. At most 191 characters. |
locale |
body | string | No | The language of the form's messages, as a language code. Default en. |
recaptcha_secret |
body | string | No | Your Google reCAPTCHA secret key. It is saved but never returned. At most 191 characters. |
curl -X POST "https://kwesforms.com/api/v1/forms" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"website_id": 13,
"name": "Contact Form",
"spam_filters": true,
"redirect_url": "https://myfavoritewebsite.com/thank-you"
}'
{
"id": 7,
"website_id": 13,
"name": "Contact Form",
"redirect_url": "https://myfavoritewebsite.com/thank-you",
"locale": "en",
"spam_filters": true,
"action": "https://kwesforms.com/api/foreign/forms/6WtWzzN1A3LnpBML3pqr",
"created_at": "2026-11-23T18:47:37.000000Z",
"updated_at": "2026-11-23T18:47:37.000000Z"
}
| Status | Message | Why |
|---|---|---|
422 |
You dont own the website with the ID provided or it does not exist. |
website_id is not the ID of a website you own. |
422 |
You reached your limit for forms. |
Your plan allows no more forms. |
Update a Form
PATCH /api/v1/forms/{form} Platinum Plan
Changes a form's settings. Send only the settings you want to change: the ones you leave out stay as they are.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
name |
body | string | No | The form's name. At most 191 characters. null leaves it as it is. |
spam_filters |
body | boolean | No | Whether the form's spam filters are on. null leaves it as it is. |
redirect_url |
body | string | No | The address visitors are sent to after they submit. At most 191 characters. null removes it. |
locale |
body | string | No | The language of the form's messages, as a language code. null leaves it as it is. |
recaptcha_secret |
body | string | No | Your Google reCAPTCHA secret key. At most 191 characters. null removes it. |
curl -X PATCH "https://kwesforms.com/api/v1/forms/7" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"name": "A New Form Name",
"redirect_url": null
}'
{
"id": 7,
"website_id": 13,
"name": "A New Form Name",
"redirect_url": null,
"locale": "en",
"spam_filters": true,
"action": "https://kwesforms.com/api/foreign/forms/6WtWzzN1A3LnpBML3pqr",
"created_at": "2026-11-23T18:47:37.000000Z",
"updated_at": "2026-11-23T19:02:11.000000Z"
}
Delete a Form
DELETE /api/v1/forms/{form} Platinum Plan
Deletes a form together with its submissions, uploaded files, emails and integrations. This cannot be undone.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
curl -X DELETE "https://kwesforms.com/api/v1/forms/7" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
{
"message": "You have successfully deleted the form."
}
Notice anything wrong in our docs? Let us know.