Browse and search developers
/
Forms
Create a form
Creates a draft form, optionally with questions. Publish it with POST /v1/forms/{formId}/publish.
On this page
POST
/v1/formsScope: forms:writecurl -X POST "https://api.formitai.com/v1/forms" \
-H "Authorization: Bearer $FORMIT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Customer feedback",
"description": "string",
"questions": [
{
"type": "text",
"title": "How did we do?",
"description": "string",
"required": true,
"position": 0,
"settings": {},
"options": [
{
"text": "Yes",
"value": "yes"
}
]
}
]
}'Parameters
Headers
Idempotency-KeystringRetry-safe key. The same key and body within 24 hours replays the first response.
Request body
namestringRequired1–120 characters
descriptionstringmax 500 characters
questionsarray of objectmax 100 items
typestringRequiredBlock type id. List them with GET /v1/block-types.
1–64 characters
titlestringRequired1–500 characters
descriptionstringmax 1000 characters
requiredbooleanpositionintegerZero-based. Defaults to the end of the form.
0–…
settingsobject (map)Block settings; see the block type schema.
optionsarray of objectChoices for choice blocks.
max 100 items
textstringRequired1–200 characters
valuestringRequired1–100 characters
Response 201
idstringRequirednamestringRequireddescriptionstring or nullRequiredpublishedbooleanRequiredresponseCountintegerRequiredcreatedAtstringRequiredISO 8601 timestamp
updatedAtstringRequiredISO 8601 timestamp
questionsarray of objectRequiredidstringRequiredtypestringRequiredBlock type id, e.g.
short_text,email,multiple_choice.titlestringRequireddescriptionstring or nullRequiredrequiredbooleanRequiredpositionintegerRequiredsettingsobject (map)Requiredoptionsarray of objectRequiredtextstringRequiredvaluestringRequired
Example response
{
"id": "item_id",
"name": "Customer feedback",
"description": "string",
"published": true,
"responseCount": 1,
"createdAt": "2026-11-25T09:30:00.000Z",
"updatedAt": "2026-11-25T09:30:00.000Z",
"questions": [
{
"id": "item_id",
"type": "text",
"title": "How did we do?",
"description": "string",
"required": true,
"position": 1,
"settings": {},
"options": [
{
"text": "Yes",
"value": "yes"
}
]
}
]
}Errors
400Invalid request:validation_failedwith fielddetails, or malformed JSON.401Missing or invalid API key.403The key lacks the scope, or its creator lacks the workspace permission.409Idempotency-Keyreused with a different request.429Rate limit exceeded. Wait forRetry-Afterseconds.
Can't find what you need?