Create Form
POST
/v1/formsCreates new form.
x-api-key<token>
In: header
x-team-id<token>
In: header
namestring
Length
2 <= length <= 50is_enabledboolean
Whether the form is enabled or not, disabled forms will not accept new submissions.
limitinteger | null
Number of submissions this form will accept before rejecting new ones.
honeypot_fieldstring | null
Honeypot field, if filled, submission will be silently discarded.
redirect_urlstring | null
The URL to redirect to after a successful submission.
success_titlestring
Shown on "Thank You" page
Length
2 <= length <= 50success_messagestring
Shown on "Thank You" page
Length
2 <= length <= 200Response Body
curl -X POST "https://forms.vexrun.com/v1/forms" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "is_enabled": true, "limit": null, "honeypot_field": null, "redirect_url": null, "success_title": "string", "success_message": "string" }'{
"id": "string",
"name": "string",
"is_enabled": true,
"limit": null,
"honeypot_field": null,
"redirect_url": null,
"success_title": "string",
"success_message": "string",
"created_at": 0,
"last_submission_at": null
}{
"errors": [
{
"path": "string",
"expected": "string",
"value": null
}
],
"message": "string"
}{
"message": "string"
}