Core Documentation

Submissions & Management API Reference

Complete reference for Formgrid public submission endpoints (/api/f/{endpointSlug}), authenticated /api/v1 Management API routes, plan permissions, rate limits, and OpenAPI 3.1 spec.

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 endpointSlug is not a secret API key. Use /api/f/{endpointSlug} in browsers and keep fg_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

  1. application/x-www-form-urlencoded — flat form field keys (name, email, message, optional honeypot, cf-turnstile-response, h-captcha-response).
  2. multipart/form-data — flat keys plus binary file inputs (file uploads enabled on Premium and Business, up to 1 GB/file).
  3. application/json — JSON body wrapping fields under formData:
{
  "formData": {
    "name": "Jordan Lee",
    "email": "alex@example.com",
    "message": "Looking for a quote"
  },
  "honeypot": ""
}

Response Modes

  • With Accept: application/json or X-Requested-With: XMLHttpRequest: Returns 201 Created with { success: true, message: "Form submitted successfully", data: { id, status, submittedAt } }, or 400 / 403 / 404 / 429 JSON on errors.
  • Standard HTML <form> post: Returns 302 Found redirecting to your configured redirectUrl (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_here

Plan 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-Limit
  • X-RateLimit-Remaining
  • X-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 on createdAt
  • search — Substring search across submission payload values (max 100 chars)
  • sort — createdAt (default) or updatedAt
  • order — desc (default) or asc
  • page — Page number (default 1)
  • limit — Page size 1–100 (default 20)

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}/submissions count 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_KEY
  • 403 PLAN_REQUIRED (Free plan calling /api/v1) / BUSINESS_REQUIRED (Premium plan calling write routes)
  • 400 VALIDATION_ERROR / INVALID_STAGE
  • 404 NOT_FOUND
  • 429 SUBMISSION_LIMIT_REACHED / RATE_LIMIT_EXCEEDED

Download the machine-readable schema: GET /docs/openapi.json.