Proiecte și șabloane
Dosare pentru formulare și catalogul de șabloane.
Proiectele grupează formulare (project_id pe formular). Șabloanele sunt catalogul mform; trimite id-ul unui șablon (tpl_…) ca template_id la POST /forms.
get/projects
List projects listProjects
Scope: forms:read · Plan: Free și peste · Unealtă MCP: list_projects
Parametri
| Nume | Unde | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
limit | query | integer | nu | Page size, 1–100. |
cursor | query | string | nu | 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"Răspuns 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 · Plan: Pro și peste · Unealtă MCP: create_project · acceptă Idempotency-Key
Parametri
| Nume | Unde | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
Idempotency-Key | header | string | nu | 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`. |
Corp (JSON)
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
name | string | da | |
description | string | null | nu |
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"}'Răspuns 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 · Plan: Free și peste · Unealtă MCP: get_project
Parametri
| Nume | Unde | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
project_id | path | prj_… id | da |
curl https://mform.md/api/public/v1/projects/prj_4fK2m9QxP0a \
-H "Authorization: Bearer $MFORM_API_KEY"Răspuns 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 · Plan: Free și peste · Unealtă MCP: list_templates
Parametri
| Nume | Unde | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
limit | query | integer | nu | Page size, 1–100. |
cursor | query | string | nu | 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" | nu | |
industry | query | "agentii" | "clinici" | "educatie" | "hr" | "horeca" | "imobiliare" | "retail" | "ong" | "evenimente" | "intern" | "saas" | "servicii" | nu | |
language | query | "ro" | "ru" | "en" | nu |
curl https://mform.md/api/public/v1/templates \
-H "Authorization: Bearer $MFORM_API_KEY"Răspuns 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 · Plan: Free și peste · Unealtă MCP: get_template
Parametri
| Nume | Unde | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
template_id | path | tpl_… id | da |
curl https://mform.md/api/public/v1/templates/tpl_feedback-clienti \
-H "Authorization: Bearer $MFORM_API_KEY"Răspuns 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"
]
}
]
}