Form Emails API
A form's emails are the notification emails you get and the confirmation emails your visitors get when the form is submitted. New to the API? Start with the overview.
Only the form's owner can use these calls.
List Form Emails
GET /api/v1/forms/{form}/emails Bronze Plan
Returns all the emails of a form.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
curl "https://kwesforms.com/api/v1/forms/7/emails" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
[
{
"id": 21,
"form_id": 7,
"type": "notification",
"name": "Front desk",
"recipient_emails": "frontdesk@myfavoritewebsite.com, owner@myfavoritewebsite.com",
"from_name": "My Favorite Website",
"reply_to": "email",
"subject_line": "New message from {$name}",
"message": "# New message\n\n- **Email** {$email}\n- **Message** {$message}",
"stripped_styling": false,
"attach_files": false,
"show_all_submissions_button": true,
"logic": false,
"logic_type": null,
"logic_rules": [],
"variables": ["email", "message"],
"created_at": "2026-11-23T18:47:40.000000Z",
"updated_at": "2026-11-23T18:47:40.000000Z"
}
]
variables lists the placeholders used in the message. You don't send it.
Get a Form Email
GET /api/v1/forms/{form}/emails/{email} Bronze Plan
Returns one email, with the same fields as in the list.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
email |
path | integer | Yes | The email's ID. It has to be one of this form's emails. |
curl "https://kwesforms.com/api/v1/forms/7/emails/21" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
Create a Form Email
POST /api/v1/forms/{form}/emails Platinum Plan
Adds a notification or confirmation email to a form. Use {$field_name} in the subject, the sender name and the message to insert a submitted value.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
type |
body | string | Yes | notification for an email to you, or confirmation for an email to the person who submitted. |
name |
body | string | Yes | A name for the email, shown in your dashboard. At most 191 characters. |
recipient_emails |
body | string | Yes | For a notification: the addresses to send to, separated by commas. For a confirmation: the name of the form field that holds the submitter's email address. |
from_name |
body | string | Yes | The name the email is sent from. At most 191 characters. |
subject_line |
body | string | Yes | The subject. At most 191 characters. |
message |
body | string | Yes | The body of the email, in Markdown. |
reply_to |
body | string | No | An email address, or the name of a form field that holds one. At most 191 characters. |
stripped_styling |
body | boolean | No | true sends an unstyled email. Default false. |
attach_files |
body | boolean | No | true attaches the submission's uploaded files. Default false. |
show_all_submissions_button |
body | boolean | No | Whether a notification has the "View all submissions" button. Default true. |
logic |
body | boolean | No | true sends the email only when its rules match, see conditional sending logic. Default false. |
logic_type |
body | string | With logic |
all when every rule has to match, any when one is enough. |
logic_rules |
body | array | With logic |
The rules, at least one. Each has a field_name, an operator of is or is_not, and a value. The field name and the value are at most 191 characters. |
curl -X POST "https://kwesforms.com/api/v1/forms/7/emails" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"type": "notification",
"name": "Sales desk",
"recipient_emails": "sales@myfavoritewebsite.com",
"from_name": "My Favorite Website",
"subject_line": "New message from {$name}",
"message": "# New message\n\n- **Email** {$email}\n- **Message** {$message}",
"logic": true,
"logic_type": "all",
"logic_rules": [
{ "field_name": "department", "operator": "is", "value": "Sales" }
]
}'
{
"id": 22,
"form_id": 7,
"type": "notification",
"name": "Sales desk",
"recipient_emails": "sales@myfavoritewebsite.com",
"from_name": "My Favorite Website",
"reply_to": null,
"subject_line": "New message from {$name}",
"message": "# New message\n\n- **Email** {$email}\n- **Message** {$message}",
"stripped_styling": false,
"attach_files": false,
"show_all_submissions_button": true,
"logic": true,
"logic_type": "all",
"logic_rules": [
{ "field_name": "department", "operator": "is", "value": "Sales" }
],
"variables": ["email", "message"],
"created_at": "2026-11-23T19:02:11.000000Z",
"updated_at": "2026-11-23T19:02:11.000000Z"
}
| Status | Message | Why |
|---|---|---|
422 |
This form has as many notification emails as your plan allows. |
Your plan allows no more emails of this type on one form. For a confirmation the message says "confirmation emails". |
422 |
Custom notification email recipients are only available on paid plans. Please upgrade to send notifications to other email addresses. |
Your account has not been reviewed yet. Until then a notification can only go to your account's own email address. |
422 |
Custom confirmation emails are only available on paid plans. Please reach out to support@kwesforms.com if you have any questions. |
Your account is still on its trial or has not been reviewed yet. |
Update a Form Email
PATCH /api/v1/forms/{form}/emails/{email} Platinum Plan
Changes an email. Send only the settings you want to change: the ones you leave out stay as they are.
The settings are the ones of Create a Form Email, with these differences:
typecannot be sent. An email keeps the type it was created with.reply_tois removed by sendingnull. Every other setting you send needs a value.- The logic settings go together. Send
"logic": truewith alogic_typeandlogic_rulesto turn logic on or to replace its rules. Send"logic": falseto turn it off and remove the rules.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
email |
path | integer | Yes | The email's ID. It has to be one of this form's emails. |
curl -X PATCH "https://kwesforms.com/api/v1/forms/7/emails/22" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"subject_line": "A new sales message",
"logic": false
}'
The reply is the email with its new settings, as in Create a Form Email.
| Status | Message | Why |
|---|---|---|
422 |
Custom notification email recipients are only available after your account has been reviewed and you are on a paid plan. |
Your account has not been reviewed yet. Until then a notification can only go to your account's own email address. |
422 |
Custom confirmation emails are only available after your account has been reviewed. For now, you can only use the default confirmation email template. |
Your account has not been reviewed yet. Until then a confirmation keeps its default message. |
Delete a Form Email
DELETE /api/v1/forms/{form}/emails/{email} Platinum Plan
Deletes an email and its logic rules.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form |
path | integer | Yes | The form's ID. |
email |
path | integer | Yes | The email's ID. It has to be one of this form's emails. |
curl -X DELETE "https://kwesforms.com/api/v1/forms/7/emails/22" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"
{
"message": "You have successfully deleted the email."
}
Notice anything wrong in our docs? Let us know.