Skip to main content

Launch: −50% for 3 months with LANSARE50

Pricing →

Forms

List, create (blank or from a template), edit, publish and share forms.

  • GET /forms and GET /forms/{id} work on every plan (forms:read); writes need Pro or higher (forms:write).
  • POST /forms creates an unpublished form unless publish is true. With template_id the template's questions come first, then yours.
  • PATCH /forms/{id} takes expected_updated_at: if the form changed since you read it you get 409 edit_conflict.
  • Share links carry UTM parameters and prefilled answers signed into the link (valid 30 days by default, up to 365).
  • Not in v1, on purpose: redirect URL, Telegram, allowed e-mails, custom domains, payments, branding and deleting forms — use the dashboard.

get/forms

List forms listForms

Scope: forms:read · Plan: Free and up · MCP tool: list_questionnaires

Newest first. Soft-deleted forms are never listed. A key limited to some forms sees only those.

Parameters

NameInTypeRequiredDescription
limitqueryintegernoPage size, 1–100.
cursorquerystringnoThe `next_cursor` of the previous page. Bound to the same filters and the same key's workspace.
statusquery"published" | "unpublished" | "all"no
project_idqueryprj_… idno
searchquerystringnoCase-insensitive match on the title.
updated_afterquerystring (date-time)no
curl https://mform.md/api/public/v1/forms \
  -H "Authorization: Bearer $MFORM_API_KEY"

Response 200

{
  "object": "list",
  "data": [
    {
      "id": "form_8Hq2LmZ71cX",
      "object": "form",
      "project_id": "prj_4fK2m9QxP0a",
      "title": "Customer feedback",
      "description": "How was your visit?",
      "slug": "example",
      "status": "published",
      "language": "ro",
      "public_url": "https://forms.megapromoting.com/q/feedback-clienti-3a9f1c",
      "edit_url": "https://example.com/webhooks/mform",
      "requires_auth": false,
      "free_navigation": false,
      "scoring_enabled": false,
      "welcome_message": "example",
      "thank_you_message": "example",
      "questions_count": 1,
      "responses_total": 1,
      "responses_completed": 1,
      "questions": [
        {
          "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"
        }
      ],
      "created_at": "2026-11-27T10:15:00Z",
      "updated_at": "2026-11-27T10:15:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": "example"
}

post/forms

Create a form (blank or from a template) createForm

Scope: forms:write · Plan: Pro and up · MCP tool: create_questionnaire · Idempotency-Key supported

questions[].logic needs the conditionalLogic feature (Pro and up)

Creates an unpublished form unless `publish` is true. With `template_id` the questions are copied from the template; `questions` (if any) are appended after them. Counts against the plan's form limit (`plan_limit_reached`).

Parameters

NameInTypeRequiredDescription
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
titlestringyes
descriptionstring | nullno
language"ro" | "ru" | "en"no
project_idprj_… idno
template_idtpl_… idno
welcome_messagestring | nullno
thank_you_messagestring | nullno
requires_authbooleanno
questionsobject[]no
publishbooleanno
curl -X POST https://mform.md/api/public/v1/forms \
  -H "Authorization: Bearer $MFORM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"title":"Customer feedback"}'

Response 201

{
  "id": "form_8Hq2LmZ71cX",
  "object": "form",
  "project_id": "prj_4fK2m9QxP0a",
  "title": "Customer feedback",
  "description": "How was your visit?",
  "slug": "example",
  "status": "published",
  "language": "ro",
  "public_url": "https://forms.megapromoting.com/q/feedback-clienti-3a9f1c",
  "edit_url": "https://example.com/webhooks/mform",
  "requires_auth": false,
  "free_navigation": false,
  "scoring_enabled": false,
  "welcome_message": "example",
  "thank_you_message": "example",
  "questions_count": 1,
  "responses_total": 1,
  "responses_completed": 1,
  "questions": [
    {
      "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"
    }
  ],
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}

get/forms/{form_id}

Retrieve a form with its questions getForm

Scope: forms:read · Plan: Free and up · MCP tool: get_questionnaire

Parameters

NameInTypeRequiredDescription
form_idpathform_… idyes
curl https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX \
  -H "Authorization: Bearer $MFORM_API_KEY"

Response 200

{
  "id": "form_8Hq2LmZ71cX",
  "object": "form",
  "project_id": "prj_4fK2m9QxP0a",
  "title": "Customer feedback",
  "description": "How was your visit?",
  "slug": "example",
  "status": "published",
  "language": "ro",
  "public_url": "https://forms.megapromoting.com/q/feedback-clienti-3a9f1c",
  "edit_url": "https://example.com/webhooks/mform",
  "requires_auth": false,
  "free_navigation": false,
  "scoring_enabled": false,
  "welcome_message": "example",
  "thank_you_message": "example",
  "questions_count": 1,
  "responses_total": 1,
  "responses_completed": 1,
  "questions": [
    {
      "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"
    }
  ],
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}

patch/forms/{form_id}

Update a form updateForm

Scope: forms:write · Plan: Pro and up · MCP tool: update_questionnaire

Only the fields below can be changed through the API. Redirect URL, Telegram, allowed e-mails, custom domain, payments and branding stay in the dashboard (they can send data outside mform). Send `expected_updated_at` to avoid overwriting a concurrent edit (`409 edit_conflict`).

Parameters

NameInTypeRequiredDescription
form_idpathform_… idyes

Body (JSON)

NameTypeRequiredDescription
titlestringno
descriptionstring | nullno
language"ro" | "ru" | "en"no
project_idprj_… idno
welcome_messagestring | nullno
thank_you_messagestring | nullno
requires_authbooleanno
free_navigationbooleanno
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/forms/form_8Hq2LmZ71cX \
  -H "Authorization: Bearer $MFORM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Customer feedback"}'

Response 200

{
  "id": "form_8Hq2LmZ71cX",
  "object": "form",
  "project_id": "prj_4fK2m9QxP0a",
  "title": "Customer feedback",
  "description": "How was your visit?",
  "slug": "example",
  "status": "published",
  "language": "ro",
  "public_url": "https://forms.megapromoting.com/q/feedback-clienti-3a9f1c",
  "edit_url": "https://example.com/webhooks/mform",
  "requires_auth": false,
  "free_navigation": false,
  "scoring_enabled": false,
  "welcome_message": "example",
  "thank_you_message": "example",
  "questions_count": 1,
  "responses_total": 1,
  "responses_completed": 1,
  "questions": [
    {
      "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"
    }
  ],
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}

post/forms/{form_id}/publish

Publish a form publishForm

Scope: forms:write · Plan: Pro and up · MCP tool: publish_questionnaire · Idempotency-Key supported

Makes the form reachable at `public_url`. Idempotent (publishing a published form returns it unchanged).

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`.
curl -X POST https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX/publish \
  -H "Authorization: Bearer $MFORM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response 200

{
  "id": "form_8Hq2LmZ71cX",
  "object": "form",
  "project_id": "prj_4fK2m9QxP0a",
  "title": "Customer feedback",
  "description": "How was your visit?",
  "slug": "example",
  "status": "published",
  "language": "ro",
  "public_url": "https://forms.megapromoting.com/q/feedback-clienti-3a9f1c",
  "edit_url": "https://example.com/webhooks/mform",
  "requires_auth": false,
  "free_navigation": false,
  "scoring_enabled": false,
  "welcome_message": "example",
  "thank_you_message": "example",
  "questions_count": 1,
  "responses_total": 1,
  "responses_completed": 1,
  "questions": [
    {
      "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"
    }
  ],
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}

post/forms/{form_id}/unpublish

Unpublish a form unpublishForm

Scope: forms:write · Plan: Pro and up · MCP tool: unpublish_questionnaire · Idempotency-Key supported

Stops collecting responses. Existing responses are kept.

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`.
curl -X POST https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX/unpublish \
  -H "Authorization: Bearer $MFORM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response 200

{
  "id": "form_8Hq2LmZ71cX",
  "object": "form",
  "project_id": "prj_4fK2m9QxP0a",
  "title": "Customer feedback",
  "description": "How was your visit?",
  "slug": "example",
  "status": "published",
  "language": "ro",
  "public_url": "https://forms.megapromoting.com/q/feedback-clienti-3a9f1c",
  "edit_url": "https://example.com/webhooks/mform",
  "requires_auth": false,
  "free_navigation": false,
  "scoring_enabled": false,
  "welcome_message": "example",
  "thank_you_message": "example",
  "questions_count": 1,
  "responses_total": 1,
  "responses_completed": 1,
  "questions": [
    {
      "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"
    }
  ],
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}