Formgrid provides two separate HTTP surfaces so browser form posts stay simple and server-side lead automation stays secure. Machine-readable schema: OpenAPI 3.1 JSON Spec.
1. Public Submission API vs. Authenticated /api/v1 API
| Surface | Base Path | Authentication | Intended Use |
|---|---|---|---|
| Public Form Submission | POST /api/f/{endpointSlug} |
None (uses public endpointSlug, CORS allowedDomains, honeypot, rate limits, optional CAPTCHA) |
Browser HTML forms, React/Next.js/Vue frontends, static sites |
Management API (v1) |
https://formgrid.dev/api/v1/* |
Authorization: Bearer fg_live_... secret key |
Server scripts, backend syncs, custom dashboards, CRM migrations |
Security note: An
endpointSlugis not a secret API key. Use/api/f/{endpointSlug}in browsers and keepfg_live_...API keys strictly on servers or CI environments.
2. Public Submission Contract
Endpoints
POST https://formgrid.dev/api/f/{endpointSlug}(primary)POST https://formgrid.dev/f/{endpointSlug}(short alias)POST https://formgrid.dev/forms/{endpointSlug}/submit(legacy alias)
Accepted Request Formats
application/x-www-form-urlencoded— flat form field keys (name,email,message, optionalhoneypot,cf-turnstile-response,h-captcha-response).multipart/form-data— flat keys plus binary file inputs (file uploads enabled on Premium and Business, up to 1 GB/file).application/json— JSON body wrapping fields underformData:
{
"formData": {
"name": "Jordan Lee",
"email": "alex@example.com",
"message": "Looking for a quote"
},
"honeypot": ""
}Response Modes
- With
Accept: application/jsonorX-Requested-With: XMLHttpRequest: Returns201 Createdwith{ success: true, message: "Form submitted successfully", data: { id, status, submittedAt } }, or400/403/404/429JSON on errors. - Standard HTML
<form>post: Returns302 Foundredirecting to your configuredredirectUrl(Premium+) or Formgrid's confirmation page. - Silent bot drop: Honeypot triggers, per-form rate limits, or failed CAPTCHA checks return
200 OK { "success": true, "message": "Submission received" }without saving the lead or triggering notifications.
3. Authenticated Management API (/api/v1)
Generate API keys in your Formgrid dashboard and send them on every request:
Authorization: Bearer fg_live_your_api_key_herePlan Permissions & Rate Limits
| Plan | Read (GET) |
Write / Bulk (POST, PATCH, DELETE) |
Rate Limit |
|---|---|---|---|
| Free ($0/mo) | No (403 PLAN_REQUIRED) |
No | N/A |
| Premium ($12/mo monthly / $10/mo annual) | Yes | No (403 BUSINESS_REQUIRED) |
100 req/min per API key |
| Business ($29/mo monthly / $24.17/mo annual) | Yes | Yes (single + bulk up to 1,000) | 1000 req/min per API key |
Every /api/v1/* response sets standard rate-limit headers:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset(Unix epoch seconds)
4. /api/v1 Endpoints
GET /api/v1/forms (Premium+)
Lists all forms belonging to the authenticated account with submission counts.
curl -s https://formgrid.dev/api/v1/forms \
-H "Authorization: Bearer fg_live_your_api_key_here"GET /api/v1/forms/{formId}/stages (Premium+)
Returns the form's configured CRM pipeline stages (id, label, color, order, submissionCount).
GET /api/v1/forms/{formId}/submissions (Premium+)
Lists non-deleted submissions with filtering, search, sorting, and pagination.
Query parameters:
stage— Filter by pipeline stage label (case-insensitive)from,to— ISO 8601 date filters oncreatedAtsearch— Substring search across submission payload values (max 100 chars)sort—createdAt(default) orupdatedAtorder—desc(default) orascpage— Page number (default1)limit— Page size1–100(default20)
GET /api/v1/forms/{formId}/submissions/{submissionId} (Premium+)
Fetches a single submission including stage, stageId, stageIds, stages, payload, notes, followUpDate, isSpam, ai, source, and utm.
POST /api/v1/forms/{formId}/submissions (Business only)
Creates one submission ({ payload, stage?, notes?, followUpDate?, source?, utm? }) or up to 1,000 submissions in bulk ({ items: [...] }).
Behavioral note: Submissions created through
POST /api/v1/forms/{formId}/submissionscount against your monthly submission allowance and do not fire owner email alerts, Google Sheets/Notion syncs, or webhooks automatically.
PATCH /api/v1/forms/{formId}/submissions/{submissionId} (Business only)
Updates a lead's stage (by stage label), appends a timestamped note (max 1,000 chars), or sets/clears followUpDate (ISO 8601 datetime or null).
DELETE /api/v1/forms/{formId}/submissions/{submissionId} (Business only)
Soft-deletes a submission and returns 204 No Content.
5. Standard Error Codes
401 MISSING_API_KEY/INVALID_API_KEY_FORMAT/INVALID_API_KEY403 PLAN_REQUIRED(Free plan calling/api/v1) /BUSINESS_REQUIRED(Premium plan calling write routes)400 VALIDATION_ERROR/INVALID_STAGE404 NOT_FOUND429 SUBMISSION_LIMIT_REACHED/RATE_LIMIT_EXCEEDED
Download the machine-readable schema: GET /docs/openapi.json.