Formx Headless & Public Submit
Manage forms and submissions with FormX JWTs, or accept unauthenticated submissions from any website at /api/forms/public/:token/submit.
Public Form Submission
POST
/api/forms/public/:token/submitAccepts form payloads from any external website, HTML <form>, or fetch() call. Protected by publicSubmitLimiter, optional domain allowlists, and silent honeypot validation.
Path & Body
| Parameter | Type | Description |
|---|---|---|
tokenrequiredpath | string | Public form token from Formx dashboard |
datarequiredbody | object | Key-value map matching your form fields |
Try itInteractive API Playground
POST
Generated cURL
curl -X POST "https://api.timetofuture.com/api/forms/public/demo-token/submit" \
-H "Content-Type: application/json" \
-d '{ "name": "Aarav Sharma", "email": "aarav@acme.com", "message": "Interested in TTF Enterprise" }'Dashboard Management (/api/forms/*)
Authenticated with FormX JWT (POST /api/forms/auth/*):
GET /api/forms&POST /api/forms— List or create formsGET /api/forms/:id&PATCH /api/forms/:id— Read or update form schema & allowed domainsPOST /api/forms/:id/rotate— Rotate public submission tokenGET /api/forms/:id/submissions— List submissionsGET /api/forms/:id/submissions/export.csv— Export submissions as CSV
Last updated on
