Skip to main content

Launch: −50% for 3 months with LANSARE50

Pricing →

Exports and PDF

CSV / JSON exports and printable response links.

  • POST /exports counts the matching responses (up to 10,000; narrow the dates above that) and returns a single-use download_url valid 15 minutes.
  • The export itself is kept 24 hours; GET /exports/{id} issues a fresh link while it exists.
  • CSV cells are protected against formula injection. Personal data is included only with responses:pii.
  • POST /responses/{id}/print_link returns a 10-minute link to a printable page (save it as PDF); plan feature pdfExport.

post/exports

Export the responses of a form (CSV or JSON) createExport

Scope: responses:read · Plan: Free and up · MCP tool: export_responses · Idempotency-Key supported

Counts the matching responses (up to 10,000; above that narrow the dates) and returns a single-use `download_url` valid 15 minutes; the file is built when the link is opened. CSV cells are protected against formula injection. Personal data is included only if the key has `responses:pii`. 10 per hour per workspace.

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
form_idform_… idyes
format"csv" | "json"no
status"completed" | "in_progress" | "abandoned" | "all"no
created_afterstring (date-time)no
created_beforestring (date-time)no
curl -X POST https://mform.md/api/public/v1/exports \
  -H "Authorization: Bearer $MFORM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"form_id":"form_8Hq2LmZ71cX"}'

Response 201

{
  "id": "exp_8Hq2LmZ71cXa4Rt9Pq7W",
  "object": "export",
  "form_id": "form_8Hq2LmZ71cX",
  "format": "csv",
  "status": "ready",
  "rows": 1,
  "personal_data_included": false,
  "download_url": "https://mform.md/api/public/v1/…?t=…",
  "download_url_expires_at": "2026-11-27T10:15:00Z",
  "expires_at": "2026-11-27T10:15:00Z",
  "created_at": "2026-11-27T10:15:00Z"
}

get/exports/{export_id}

Retrieve an export getExport

Scope: responses:read · Plan: Free and up · MCP tool: not exposed over MCP

Exports are kept 24 hours. The download link is single-use; this call issues a fresh one while the export exists.

Parameters

NameInTypeRequiredDescription
export_idpathexp_… idyes
curl https://mform.md/api/public/v1/exports/exp_8Hq2LmZ71cXa4Rt9Pq7W \
  -H "Authorization: Bearer $MFORM_API_KEY"

Response 200

{
  "id": "exp_8Hq2LmZ71cXa4Rt9Pq7W",
  "object": "export",
  "form_id": "form_8Hq2LmZ71cX",
  "format": "csv",
  "status": "ready",
  "rows": 1,
  "personal_data_included": false,
  "download_url": "https://mform.md/api/public/v1/…?t=…",
  "download_url_expires_at": "2026-11-27T10:15:00Z",
  "expires_at": "2026-11-27T10:15:00Z",
  "created_at": "2026-11-27T10:15:00Z"
}