Questions
Add, replace, edit and delete the questions of a form.
- Add questions at a position, or replace the whole list (items with an id are kept and updated, the others are created).
- A question that already has answers is never removed: you get 409 question_has_answers.
- Conditional logic refers to questions by their public qst_ ids and needs a plan with conditional logic.
- GET /forms/{id} already returns the questions; MCP agents use get_questionnaire for that.
get/forms/{form_id}/questions
List the questions of a form listQuestions
Scope: forms:read · Plan: Free and up · MCP tool: not exposed over MCP
In display order. Not paginated (a form has at most 300 questions).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
form_id | path | form_… id | yes |
curl https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX/questions \
-H "Authorization: Bearer $MFORM_API_KEY"Response 200
{
"object": "list",
"data": [
{
"id": "qst_2Jd8Kx0pQa9",
"object": "question",
"form_id": "form_8Hq2LmZ71cX",
"position": 1,
"section": "example",
"text": "How was your visit?",
"hint": "example",
"type": "short_text",
"required": false,
"options": [
"example"
],
"score_points": 1,
"logic": {},
"validation": {},
"payment": {
"amount_cents": 1,
"currency": "example",
"label": "example"
},
"allow_other": false,
"other_label": "example",
"has_answers": false,
"created_at": "2026-11-27T10:15:00Z"
}
]
}post/forms/{form_id}/questions
Add questions to a form addQuestions
Scope: forms:write · Plan: Pro and up · MCP tool: add_questions · Idempotency-Key supported
questions[].logic needs the conditionalLogic feature (Pro and up)
Appends 1–100 questions (or inserts them at `position`). Returns all questions of the form.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
form_id | path | form_… id | yes | |
Idempotency-Key | header | string | no | Any unique string (a UUID). The first result is kept 24 hours and replayed for the same key and body (`Idempotent-Replayed: true`); a different body returns `409 idempotency_key_reused`. |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
questions | object[] | yes | |
position | integer | no | Insert before this 0-based position. Default = at the end. |
expected_updated_at | string (date-time) | no | The form's `updated_at` you last read. If the form changed since, the call fails with `409 edit_conflict`. |
curl -X POST https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX/questions \
-H "Authorization: Bearer $MFORM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"questions":[{"text":"How was your visit?","type":"short_text"}]}'Response 201
{
"object": "list",
"data": [
{
"id": "qst_2Jd8Kx0pQa9",
"object": "question",
"form_id": "form_8Hq2LmZ71cX",
"position": 1,
"section": "example",
"text": "How was your visit?",
"hint": "example",
"type": "short_text",
"required": false,
"options": [
"example"
],
"score_points": 1,
"logic": {},
"validation": {},
"payment": {
"amount_cents": 1,
"currency": "example",
"label": "example"
},
"allow_other": false,
"other_label": "example",
"has_answers": false,
"created_at": "2026-11-27T10:15:00Z"
}
],
"form_updated_at": "2026-11-27T10:15:00Z"
}put/forms/{form_id}/questions
Replace the question list replaceQuestions
Scope: forms:write · Plan: Pro and up · MCP tool: update_questions
questions[].logic needs the conditionalLogic feature (Pro and up)
Sets the full ordered list. Items with `id` are updated, items without `id` are created, existing questions missing from the list are removed. A question that already has answers is never removed: the call fails with `409 question_has_answers` (unpublish or keep it). `expected_updated_at` is required.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
form_id | path | form_… id | yes |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
questions | object[] | yes | |
expected_updated_at | string (date-time) | yes | The form's `updated_at` you last read. If the form changed since, the call fails with `409 edit_conflict`. |
curl -X PUT https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX/questions \
-H "Authorization: Bearer $MFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"questions":[{"text":"How was your visit?","type":"short_text"}],"expected_updated_at":"2026-11-27T10:15:00Z"}'Response 200
{
"object": "list",
"data": [
{
"id": "qst_2Jd8Kx0pQa9",
"object": "question",
"form_id": "form_8Hq2LmZ71cX",
"position": 1,
"section": "example",
"text": "How was your visit?",
"hint": "example",
"type": "short_text",
"required": false,
"options": [
"example"
],
"score_points": 1,
"logic": {},
"validation": {},
"payment": {
"amount_cents": 1,
"currency": "example",
"label": "example"
},
"allow_other": false,
"other_label": "example",
"has_answers": false,
"created_at": "2026-11-27T10:15:00Z"
}
],
"form_updated_at": "2026-11-27T10:15:00Z"
}get/questions/{question_id}
Retrieve a question getQuestion
Scope: forms:read · Plan: Free and up · MCP tool: not exposed over MCP
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
question_id | path | qst_… id | yes |
curl https://mform.md/api/public/v1/questions/qst_2Jd8Kx0pQa9 \
-H "Authorization: Bearer $MFORM_API_KEY"Response 200
{
"id": "qst_2Jd8Kx0pQa9",
"object": "question",
"form_id": "form_8Hq2LmZ71cX",
"position": 1,
"section": "example",
"text": "How was your visit?",
"hint": "example",
"type": "short_text",
"required": false,
"options": [
"example"
],
"score_points": 1,
"logic": {},
"validation": {},
"payment": {
"amount_cents": 1,
"currency": "example",
"label": "example"
},
"allow_other": false,
"other_label": "example",
"has_answers": false,
"created_at": "2026-11-27T10:15:00Z"
}patch/questions/{question_id}
Update a question updateQuestion
Scope: forms:write · Plan: Pro and up · MCP tool: update_question
logic needs the conditionalLogic feature (Pro and up)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
question_id | path | qst_… id | yes |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
text | string | no | |
hint | string | null | no | |
section | string | null | no | |
required | boolean | no | |
options | string[] | null | no | |
score_points | integer | null | no | |
logic | object | null | no | |
validation | object | null | no | |
allow_other | boolean | no | |
other_label | string | null | no | |
position | integer | no | |
expected_updated_at | string (date-time) | no | The form's `updated_at` you last read. If the form changed since, the call fails with `409 edit_conflict`. |
curl -X PATCH https://mform.md/api/public/v1/questions/qst_2Jd8Kx0pQa9 \
-H "Authorization: Bearer $MFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"How was your visit?"}'Response 200
{
"id": "qst_2Jd8Kx0pQa9",
"object": "question",
"form_id": "form_8Hq2LmZ71cX",
"position": 1,
"section": "example",
"text": "How was your visit?",
"hint": "example",
"type": "short_text",
"required": false,
"options": [
"example"
],
"score_points": 1,
"logic": {},
"validation": {},
"payment": {
"amount_cents": 1,
"currency": "example",
"label": "example"
},
"allow_other": false,
"other_label": "example",
"has_answers": false,
"created_at": "2026-11-27T10:15:00Z"
}delete/questions/{question_id}
Delete a question without answers deleteQuestion
Scope: forms:write · Plan: Pro and up · MCP tool: delete_question
A question that already has answers cannot be deleted (`409 question_has_answers`).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
question_id | path | qst_… id | yes |
curl -X DELETE https://mform.md/api/public/v1/questions/qst_2Jd8Kx0pQa9 \
-H "Authorization: Bearer $MFORM_API_KEY"Response 200
{
"id": "example",
"object": "example",
"deleted": true
}