KwesForms API

The KwesForms API lets your own code do what you do in the dashboard: read and create submissions, and manage your forms, form emails and websites. It is a REST API that takes and returns JSON.

Base URL

Every call starts with:

https://kwesforms.com/api/v1

Authentication

Every call needs your API key. To find it, open the menu under your name at the top right of your dashboard and select "API Keys".

Send the key in an Authorization header, together with an Accept header that asks for JSON:

Authorization: Bearer YOUR_API_KEY
Accept: application/json
  • You have one API key and it gives full access to your account. Keep it on your server, never in the code of a web page.
  • "Refresh Token" on the API Keys page gives you a new key. The old one stops working right away.
  • Without Accept: application/json an error comes back as a redirect to a web page instead of JSON.

Your First Request

List your forms. Replace YOUR_API_KEY with your key and run it.

curl "https://kwesforms.com/api/v1/forms" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

You get back a list of your forms. An empty list, [], means your key works and you have no forms yet.

[
  {
    "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"
  }
]

The other pages of this reference show each call as a cURL command you can copy. The IDs in them (form 7, website 13 and so on) are examples: use your own.

Plans

Each call shows the plan it needs:

Badge Who can use the call Calls
Bronze Plan Every paid plan: Bronze, Silver, Gold and Platinum Reading websites, forms, form emails and submissions. Creating and deleting submissions. Setting form rules. Validating data.
Platinum Plan Platinum Creating, updating and deleting websites, forms and form emails. Website logos.

How many calls a day your plan includes is on the pricing page.

Rate Limit

You can make 500 calls a minute, up to your plan's daily limit. Responses tell you where you stand in the current minute in the X-RateLimit-Limit and X-RateLimit-Remaining headers.

When you make more than 500 calls in a minute you get a 429 with the message Too Many Attempts. Its Retry-After header says how many seconds to wait.

Pagination

Only List Submissions is paginated, with its limit and page parameters. Every other list returns all of its items in one response.

Errors

A call that works returns 200. An error returns another status code and a JSON object with a message:

{
  "message": "The form provided does not belong to you."
}

When a parameter is missing or not valid the status is 422, and errors lists what is wrong with each parameter:

{
  "message": "The name field is required. (and 1 more error)",
  "errors": {
    "name": ["The name field is required."],
    "spam_filters": ["The spam filters field is required."]
  }
}

These errors can come back from any call. The other pages only list the errors that are specific to a call.

Status Message Why
401 Unauthenticated. The API key is missing or wrong.
401 Please upgrade to at least a Bronze plan to get API access. Your plan has no API access.
401 You need a valid subscription to use these endpoints Your account has no active subscription.
401 It seems you have some overages on your account. Address these issues from your dashboard. Your account has more websites, forms or users than your plan allows.
403 This endpoint is a Platinum only feature. The call needs a Platinum plan.
403 The form provided does not belong to you. You are not the owner of the form. This includes forms of a website that is shared with you.
403 The website provided does not belong to you. You are not the owner of the website.
403 Your account is temporarily suspended from KwesForms. Your account, or the account that owns the form, is suspended.
404 Varies There is no form, website, form email or submission with the ID in the URL.
422 Varies A parameter is missing or not valid. See errors.
429 Too Many Attempts. You made more than 500 calls in a minute.
500 Server Error Something went wrong on our side.

Endpoints

Every call, with a link to its details.

Call What it does Plan
GET /api/v1/forms/{form}/submissions List a form's submissions Bronze Plan
GET /api/v1/forms/{form}/submissions/{id} Get one submission Bronze Plan
POST /api/v1/forms/{form}/submissions Create a submission Bronze Plan
DELETE /api/v1/forms/{form}/submissions/{id} Delete a submission Bronze Plan
GET /api/v1/forms List your forms Bronze Plan
GET /api/v1/forms/{form} Get one form Bronze Plan
POST /api/v1/forms Create a form Platinum Plan
PATCH /api/v1/forms/{form} Update a form Platinum Plan
DELETE /api/v1/forms/{form} Delete a form Platinum Plan
POST /api/v1/forms/{form}/rules Set a form's fields and validation rules Bronze Plan
GET /api/v1/forms/{form}/emails List a form's emails Bronze Plan
GET /api/v1/forms/{form}/emails/{email} Get one email Bronze Plan
POST /api/v1/forms/{form}/emails Create an email Platinum Plan
PATCH /api/v1/forms/{form}/emails/{email} Update an email Platinum Plan
DELETE /api/v1/forms/{form}/emails/{email} Delete an email Platinum Plan
GET /api/v1/websites List your websites Bronze Plan
GET /api/v1/websites/{website} Get one website Bronze Plan
POST /api/v1/websites Create a website Platinum Plan
PATCH /api/v1/websites/{website} Update a website Platinum Plan
DELETE /api/v1/websites/{website} Delete a website Platinum Plan
POST /api/v1/websites/{website}/logo Upload a website's logo Platinum Plan
DELETE /api/v1/websites/{website}/logo Delete a website's logo Platinum Plan
POST /api/v1/validate Check data against rules you send Bronze Plan
POST /api/v1/validate/{form} Check data against a form's rules Bronze Plan

Notice anything wrong in our docs? Let us know.