Create a form
create_formCreate a new form for your tenant by defining fields and optional settings, then receive a shareable public link for respondents.
Instructions
Create a form for the API key's tenant.
Field types: text | email | phone | date | select | checkbox | consent | textarea | number | rating | multiselect | hidden | file | page_break | calculated
Each field needs: id (unique within the form), type, label, required. Optional per field: placeholder, options (select/multiselect), min/max (number/rating), defaultValue (hidden), accept and maxSizeMb (file).
Settings (all optional): successMessage, redirectUrl, closeAt (ISO date), maxResponses.
Returns the created form (including its id) and its publicUrl, the shareable link respondents use. This tool only creates: it never edits an existing form, so call it once per new form and check list_forms first if a form with the same name may already exist. If the FormVault API rejects the input or the key, the tool returns an error result with the API's message and nothing is created.
Keep public-facing forms short — every extra question costs responses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Form name (non-empty) | |
| fields | Yes | Field definitions (at least one) | |
| settings | No | Optional form behaviour: successMessage, redirectUrl, closeAt (ISO 8601) and maxResponses | |
| description | No | Shown to respondents above the fields |