publish_form
Publish a form draft to make it live and accepting responses, generating a public URL for sharing. Set a deadline or response cap so the form closes automatically when either is reached.
Instructions
Publish a form draft to make it publicly accessible for responses.
After publishing:
The form will be live and accepting responses
A public URL will be generated for sharing
Usage limits will apply based on your plan
The form can be shared via link, QR code, or embedded
You can set a deadline with close_at and/or a cap with response_limit; the form stops accepting responses when either is reached. Calling publish_form again on a published or closed form updates these settings (pass null to clear one) and reopens a closed form. Share the returned publicUrl with respondents yourself; niceform does not send it anywhere.
Important: Publishing a form counts toward your plan's form limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional: Override the form name before publishing. If not provided, uses the AI-generated name. | |
| form_id | Yes | The form UUID or public id. | |
| close_at | No | ISO 8601 timestamp with offset (e.g. 2026-12-01T17:00:00Z) after which the form stops accepting responses. null clears it. | |
| response_limit | No | Maximum number of responses to accept. null removes the limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| formId | Yes | ||
| status | Yes | ||
| closeAt | No | ||
| publicId | Yes | ||
| publicUrl | Yes | ||
| formStatus | No | ||
| responseLimit | No |