/forms/:id/publishPublish Form
Publish a draft form to start collecting responses
Overview
Publishes a draft form, generating a unique share URL and making it available for submissions. You can choose between public (anyone with the link) or private (email whitelist) visibility.
Request
/forms/:id/publishPath Parameters
Headers
| Header | Value |
|---|---|
Authorization | Bearer fxk_live_<your-api-key> |
Content-Type | application/json |
Request Body
Example Request
curl -X POST "https://api.formfex.com/api/v1/public/forms/FORM_ID/publish" \
-H "Authorization: Bearer $FORMFEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"visibility": "PUBLIC",
"expiresAt": "2026-06-01T00:00:00.000Z"
}'Response
Error Cases
| Status | Condition |
|---|---|
403 | Form is already published |
403 | PRIVATE visibility requires a plan with private forms feature |
404 | Form not found or soft-deleted |
Share URL
A unique 10-character share URL is generated automatically on publish. The full form URL will be: https://formfex.com/f/{shareUrl}
Webhooks & Integrations
Publishing a form triggers the FORM_PUBLISHED webhook event and sends notifications to configured Slack or Teams integrations.
Private Forms
Private forms require the privateForms feature, available on Pro and Max plans. Only the specified email addresses can access and submit the form.
n8n
In n8n, this operation is available as Publish under the Form resource in the Formfex node.