Create Form

POST/v1/forms

Creates new form.

x-api-key<token>

In: header

x-team-id<token>

In: header

namestring
Length2 <= length <= 50
is_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

Length2 <= length <= 50
success_messagestring

Shown on "Thank You" page

Length2 <= length <= 200

Response 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"
}