POST
/api/v1/public/websites/:key/forms/:formKey/submissionsSubmit a Public Lead Form
Validates incoming form fields against the published FormVersion, checks honeypot spam protection and consent, stores the submission, and automatically creates a CRM Lead in the website pipeline.
Bearer JWT / sf_tok_
| Parameter | In | Type | Description |
|---|---|---|---|
| key* | path | string | Website slug key (e.g. acme). |
| formKey* | path | string | Published form key (e.g. contact, quote). |
| values* | body | Record<string, unknown> | Key/value map of submitted form fields. |
| consentGranted | body | boolean | Required when form.requireConsent is true. |
| honeypot | body | string | Must be empty for human submissions. |
Request
bash
curl -X POST "https://api.sitefabric.space/api/v1/public/websites/acme/forms/contact/submissions" \
-H "Accept: application/json" \
-H "Authorization: Bearer sf_tok_your_auth_token" \
-H "Content-Type: application/json" \
-d '{"values":{"name":"Jane Doe","email":"jane@example.com","phone":"+1-555-0199","message":"Need a quote for 3 locations"},"consentGranted":true,"honeypot":""}'Response200 OK
json
{
"submissionId": "674f1c2e9a1b2c3d4e5f6f01",
"leadId": "674f1c2e9a1b2c3d4e5f6f02",
"status": "accepted"
}
