Quickstart
A key, your first request, your first responses — in five minutes.
1. Create a key
Settings → Developers → API keys (workspace owners and admins only). Pick the type "Read only", give it a name, keep the default expiry (365 days) and press Create. The key (mf_live_…) is shown once: store it in a secret manager or an environment variable, never in code.
2. Check it and read responses
GET /me returns the workspace, the plan, the key's role and its effective scopes. Then list the latest completed responses with their answers.
export MFORM_API_KEY="mf_live_…" # Settings → Developers → New key → "Read only"
curl https://mform.md/api/public/v1/me \
-H "Authorization: Bearer $MFORM_API_KEY"
curl "https://mform.md/api/public/v1/responses?status=completed&limit=5&include=answers" \
-H "Authorization: Bearer $MFORM_API_KEY"3. Page through lists
Lists return { object: "list", data, has_more, next_cursor }. Repeat the call with cursor=next_cursor until has_more is false; keep the other filters unchanged.
let cursor = null;
do {
const url = new URL("https://mform.md/api/public/v1/forms");
url.searchParams.set("limit", "100");
if (cursor) url.searchParams.set("cursor", cursor);
const page = await (await fetch(url, { headers: { Authorization: `Bearer ${process.env.MFORM_API_KEY}` } })).json();
for (const form of page.data) console.log(form.id, form.title);
cursor = page.has_more ? page.next_cursor : null;
} while (cursor);4. Get notified instead of polling
On Business and up, add a webhook endpoint (Settings → Developers → Webhooks, or POST /webhook_endpoints) for response.completed and press Send test. On every plan you can poll GET /responses?status=completed&completed_after=… or GET /events.