Minuteform

Docs

Everything is a plain HTTPS API. Base URL https://minuteform.pages.dev. OpenAPI: /openapi.json · /openapi.yaml.

1. Receive submissions

POST /f/<public_id> with application/x-www-form-urlencoded, multipart/form-data (no files) or application/json. Up to 50 fields, 5,000 characters per field, 32 KB per submission. Fields starting with _ are ignored; a non-empty _gotcha marks spam (accepted silently, not stored). An email field must look like an email. Browsers get a 303 redirect to your redirect URL (or our thank-you page); JSON clients get {"ok":true,"message":"…"}.

curl -X POST https://minuteform.pages.dev/f/YOUR_FORM_ID -H 'Content-Type: application/json' -H 'Accept: application/json' \
  -d '{"name":"Jane","phone":"555-0100","message":"Leaking water heater"}'

Errors: 400 invalid input · 402 monthly limit reached · 403 origin not allowed · 404 unknown form · 413 too large · 415 unsupported type · 422 invalid email · 429 rate limited (10 per minute per IP per form, 300 per hour per form).

2. REST API

Send Authorization: Bearer mf_…. JSON in and out. 300 requests per minute per account.

GET /api/mePlan, limits, usage
GET /api/forms · POST /api/formsList / create (name, notify[], ntfy_topic, redirect_url, reply_message, allowed_origins, retention_days)
GET|PATCH|DELETE /api/forms/:idRead / update / delete a form and its submissions
POST /api/forms/:id/testSend a test alert
GET /api/forms/:id/submissions[.csv|.json]List (limit, before) or export
DELETE /api/forms/:id/submissions · DELETE /api/submissions/:idPurge / delete one
POST /api/keys/rotateNew key; old key stops working at once
GET /api/auditLast 200 account events
GET /api/exportFull account export (JSON)
DELETE /api/accountBody {"confirm":"DELETE"}; deletes forms and submissions
GET /healthzHealth (no auth)

3. Verify webhooks

Generic webhooks receive {"event":"submission.created","id","form","created_at","data"}. Slack, Teams, Discord and Google Chat URLs get their native message format. Every request carries X-Minuteform-Signature: t=<unix>,v1=<hex>, an HMAC-SHA256 of t + "." + raw body using the form's signing secret.

// Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
function verify(raw, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(',').map(p => p.split('=')));
  if (Math.abs(Date.now()/1000 - t) > 300) return false;
  const mac = createHmac('sha256', secret).update(`${t}.${raw}`).digest('hex');
  return timingSafeEqual(Buffer.from(mac), Buffer.from(v1));
}
# Python
import hmac, hashlib, time
def verify(raw: bytes, header: str, secret: str) -> bool:
    parts = dict(p.split('=', 1) for p in header.split(','))
    if abs(time.time() - int(parts['t'])) > 300: return False
    mac = hmac.new(secret.encode(), parts['t'].encode() + b'.' + raw, hashlib.sha256).hexdigest()
    return hmac.compare_digest(mac, parts['v1'])

4. Phone push with ntfy

Install the free ntfy app (iOS/Android), subscribe to a hard-to-guess topic, and enter the same topic on your form. Note that public ntfy.sh topics are readable by anyone who knows the name; for sensitive data use a Slack/Teams webhook instead.

5. Export and delete your data

Self-serve, no ticket required. The API key is shown only at signup or rotation.

# Full account export (forms, submissions, audit log)
curl -L https://minuteform.pages.dev/api/export -H "Authorization: Bearer $MF_KEY" -o minuteform-export.json

# CSV for one form
curl https://minuteform.pages.dev/api/forms/frm_YOUR_ID/submissions.csv -H "Authorization: Bearer $MF_KEY" -o leads.csv

# Delete one submission
curl -X DELETE https://minuteform.pages.dev/api/submissions/sub_YOUR_ID -H "Authorization: Bearer $MF_KEY"

# Delete the account and all stored leads (irreversible)
curl -X DELETE https://minuteform.pages.dev/api/account -H "Authorization: Bearer $MF_KEY"   -H 'Content-Type: application/json' -d '{"confirm":"DELETE"}'

If a paid subscription is still active, cancel it in the Stripe billing portal so you are not charged again after deletion.

6. More examples

HTML form

<form action="https://minuteform.pages.dev/f/YOUR_FORM_ID" method="POST">
  <input name="name" required>  <input name="phone" type="tel">
  <textarea name="message"></textarea>
  <input name="_gotcha" style="display:none">  <!-- spam trap -->
  <button>Get my quote</button>
</form>

fetch (browser or Node)

const r = await fetch('https://minuteform.pages.dev/f/YOUR_FORM_ID', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
  body: JSON.stringify({ name: 'Jane', phone: '555-0100', message: 'Quote please' })
});
const j = await r.json(); // { ok: true, message: '…' }

Python

import requests
r = requests.post('https://minuteform.pages.dev/f/YOUR_FORM_ID', json={'name': 'Jane', 'phone': '555-0100'})
r.raise_for_status()

Machine-readable spec: /openapi.json · /openapi.yaml. Copy-paste samples also live in the examples/ folder of the repo.

7. Limits

Free: 1 form, 100 submissions/month. Pro: 20 forms, 5,000. Agency: 200 forms, 25,000. Monthly counts reset on the 1st (UTC). Intake is also rate-limited to 10 submissions per minute per IP per form and 300 per hour per form (HTTP 429 with a Retry-After header). The authenticated API allows 300 requests per minute per account. Signup is limited to 5 attempts per hour per IP.