Проекты и шаблоны
Папки для форм и каталог шаблонов.
Проекты группируют формы (project_id у формы). Шаблоны — каталог mform; передайте id шаблона (tpl_…) как template_id в POST /forms.
get/projects
List projects listProjects
Scope: forms:read · Тариф: Free и выше · Инструмент MCP: list_projects
Параметры
| Имя | Где | Тип | Обязательный | Описание |
|---|---|---|---|---|
limit | query | integer | нет | Page size, 1–100. |
cursor | query | string | нет | 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-Key | header | string | нет | 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)
| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
name | string | да | |
description | string | 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_id | path | prj_… 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
Параметры
| Имя | Где | Тип | Обязательный | Описание |
|---|---|---|---|---|
limit | query | integer | нет | Page size, 1–100. |
cursor | query | string | нет | The `next_cursor` of the previous page. Bound to the same filters and the same key's workspace. |
category | query | "leads" | "feedback" | "ops" | "events" | "support" | нет | |
industry | query | "agentii" | "clinici" | "educatie" | "hr" | "horeca" | "imobiliare" | "retail" | "ong" | "evenimente" | "intern" | "saas" | "servicii" | нет | |
language | query | "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_id | path | tpl_… 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"
]
}
]
}