Перейти к основному содержанию

Запуск: −50% на 3 месяца с кодом LANSARE50

Цены →

Проекты и шаблоны

Папки для форм и каталог шаблонов.

Проекты группируют формы (project_id у формы). Шаблоны — каталог mform; передайте id шаблона (tpl_…) как template_id в POST /forms.

get/projects

List projects listProjects

Scope: forms:read · Тариф: Free и выше · Инструмент MCP: list_projects

Параметры

ИмяГдеТипОбязательныйОписание
limitqueryintegerнетPage size, 1–100.
cursorquerystringнетThe `next_cursor` of the previous page. Bound to the same filters and the same key's workspace.
curl https://mform.md/api/public/v1/projects \
  -H "Authorization: Bearer $MFORM_API_KEY"

Ответ 200

{
  "object": "list",
  "data": [
    {
      "id": "prj_4fK2m9QxP0a",
      "object": "project",
      "name": "Customer feedback",
      "description": "How was your visit?",
      "forms_count": 1,
      "created_at": "2026-11-27T10:15:00Z",
      "updated_at": "2026-11-27T10:15:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": "example"
}

post/projects

Create a project createProject

Scope: forms:write · Тариф: Pro и выше · Инструмент MCP: create_project · поддерживает Idempotency-Key

Параметры

ИмяГдеТипОбязательныйОписание
Idempotency-Keyheaderstringнет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`.

Тело (JSON)

ИмяТипОбязательныйОписание
namestringда
descriptionstring | nullнет
curl -X POST https://mform.md/api/public/v1/projects \
  -H "Authorization: Bearer $MFORM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Customer feedback"}'

Ответ 201

{
  "id": "prj_4fK2m9QxP0a",
  "object": "project",
  "name": "Customer feedback",
  "description": "How was your visit?",
  "forms_count": 1,
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}

get/projects/{project_id}

Retrieve a project getProject

Scope: forms:read · Тариф: Free и выше · Инструмент MCP: get_project

Параметры

ИмяГдеТипОбязательныйОписание
project_idpathprj_… idда
curl https://mform.md/api/public/v1/projects/prj_4fK2m9QxP0a \
  -H "Authorization: Bearer $MFORM_API_KEY"

Ответ 200

{
  "id": "prj_4fK2m9QxP0a",
  "object": "project",
  "name": "Customer feedback",
  "description": "How was your visit?",
  "forms_count": 1,
  "created_at": "2026-11-27T10:15:00Z",
  "updated_at": "2026-11-27T10:15:00Z"
}

get/templates

List templates listTemplates

Scope: forms:read · Тариф: Free и выше · Инструмент MCP: list_templates

Параметры

ИмяГдеТипОбязательныйОписание
limitqueryintegerнетPage size, 1–100.
cursorquerystringнетThe `next_cursor` of the previous page. Bound to the same filters and the same key's workspace.
categoryquery"leads" | "feedback" | "ops" | "events" | "support"нет
industryquery"agentii" | "clinici" | "educatie" | "hr" | "horeca" | "imobiliare" | "retail" | "ong" | "evenimente" | "intern" | "saas" | "servicii"нет
languagequery"ro" | "ru" | "en"нет
curl https://mform.md/api/public/v1/templates \
  -H "Authorization: Bearer $MFORM_API_KEY"

Ответ 200

{
  "object": "list",
  "data": [
    {
      "id": "tpl_feedback-clienti",
      "object": "template",
      "name": "Customer feedback",
      "description": "How was your visit?",
      "category": "leads",
      "industries": [
        "example"
      ],
      "language": "ro",
      "estimated_fill_minutes": 1,
      "questions_count": 1,
      "questions": [
        {
          "text": "How was your visit?",
          "type": "short_text",
          "hint": "example",
          "section": "example",
          "required": false,
          "options": [
            "example"
          ]
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": "example"
}

get/templates/{template_id}

Retrieve a template with its questions getTemplate

Scope: forms:read · Тариф: Free и выше · Инструмент MCP: get_template

Параметры

ИмяГдеТипОбязательныйОписание
template_idpathtpl_… idда
curl https://mform.md/api/public/v1/templates/tpl_feedback-clienti \
  -H "Authorization: Bearer $MFORM_API_KEY"

Ответ 200

{
  "id": "tpl_feedback-clienti",
  "object": "template",
  "name": "Customer feedback",
  "description": "How was your visit?",
  "category": "leads",
  "industries": [
    "example"
  ],
  "language": "ro",
  "estimated_fill_minutes": 1,
  "questions_count": 1,
  "questions": [
    {
      "text": "How was your visit?",
      "type": "short_text",
      "hint": "example",
      "section": "example",
      "required": false,
      "options": [
        "example"
      ]
    }
  ]
}