Documentation
Endpoint
Every form has an endpoint: POST https://forms.prizenlabs.com/f/<form_id>. It accepts application/x-www-form-urlencoded, multipart/form-data (without files) and application/json, up to 64 KB, 50 fields and 10,000 characters per field.
Responses
- Requests with
Accept: application/jsonor a JSON body get JSON:{"success":true,"id":"sub_…","message":"…"}with status 200, or{"success":false,"message":"…"}with 400, 403, 404, 413, 415 or 429. - Plain HTML form posts are redirected (303) to
_redirect, your form's saved redirect URL, or our thank-you page with a link back.
Special fields
email | Used as the Reply-To of notification emails and for GDPR erasure lookups. |
_subject | Subject line of the notification email. |
_redirect / _next | Where to send the visitor after an HTML post. Must be on an allowed domain (or the page's own host when the allow-list is empty). |
_gotcha | Honeypot. Keep it hidden and empty. If filled, we answer "success" and discard the submission. You can rename it per form. |
cf-turnstile-response | Added automatically by the Cloudflare Turnstile widget. Required when you save a Turnstile secret on the form. |
Field names that look like passwords, card numbers, CVV, SSN, seed phrases or bank account numbers are rejected. Contact forms never need them, and phishing forms always do.
Limits
- Monthly submissions per account: Free 250, Pro 5,000, Agency 25,000. Over the limit, new submissions get 429 until the next month (UTC).
- Per visitor IP and form: about 10 per minute and 30 per hour.
- No file uploads yet.
Webhooks
We POST JSON to your URL for every submission:
{
"event": "submission.created",
"form": { "id": "f_…", "name": "Contact", "site": "My site" },
"submission": { "id": "sub_…", "data": { "name": "…", "email": "…" }, "page": "https://…", "submitted_at": "2026-11-25T10:00:00.000Z" }
}
If you set a signing secret, verify the X-Pasteform-Signature: t=<unix>,v1=<hex> header: v1 = HMAC-SHA256(secret, t + "." + rawBody).
import crypto from "node:crypto";
function verify(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest("hex");
return Math.abs(Date.now() / 1000 - Number(t)) < 300 &&
crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
Failed deliveries (non-2xx or timeout) are retried up to 3 more times over about 2.5 hours. You can see the delivery log on the form page.
Cloudflare Turnstile
- Create a Turnstile widget for your domain in your Cloudflare dashboard.
- Add the widget to your form with your site key (
<div class="cf-turnstile" data-sitekey="…">plus Cloudflare's script). - Paste the widget's secret key into the form's settings. From then on every submission must pass Turnstile.
REST API
Create an API key on the Account page and send it as Authorization: Bearer pf_live_….
GET /api/v1/forms | List your forms. |
GET /api/v1/forms/:id/submissions?limit=50&before=<ms> | List stored submissions, newest first (paginate with next_before). |
DELETE /api/v1/submissions/:id | Delete one submission. |
DELETE /api/v1/submissions?email=person@example.com[&form_id=f_…] | GDPR erasure: delete every stored submission from that email address. |
curl -X DELETE "https://forms.prizenlabs.com/api/v1/submissions?email=person@example.com" \ -H "Authorization: Bearer pf_live_…"
Platform guides
Lovable · Bolt · v0 · Framer · Webflow · Astro · Next.js · Hugo · Jekyll · GitHub Pages · Netlify · Vercel · WordPress (static export) · Carrd · plain HTML