Skip to main content

Launch: −50% for 3 months with LANSARE50

Pricing →

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

NameInTypeRequiredDescription
form_idpathform_… idyes
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

NameInTypeRequiredDescription
form_idpathform_… idyes
Idempotency-KeyheaderstringnoAny 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)

NameTypeRequiredDescription
questionsobject[]yes
positionintegernoInsert before this 0-based position. Default = at the end.
expected_updated_atstring (date-time)noThe 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

NameInTypeRequiredDescription
form_idpathform_… idyes

Body (JSON)

NameTypeRequiredDescription
questionsobject[]yes
expected_updated_atstring (date-time)yesThe 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

NameInTypeRequiredDescription
question_idpathqst_… idyes
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

NameInTypeRequiredDescription
question_idpathqst_… idyes

Body (JSON)

NameTypeRequiredDescription
textstringno
hintstring | nullno
sectionstring | nullno
requiredbooleanno
optionsstring[] | nullno
score_pointsinteger | nullno
logicobject | nullno
validationobject | nullno
allow_otherbooleanno
other_labelstring | nullno
positionintegerno
expected_updated_atstring (date-time)noThe 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

NameInTypeRequiredDescription
question_idpathqst_… idyes
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
}