Skip to main content
The Forms API handles form submissions from the widget and provides analytics on form performance.

Endpoints

Submit Form

Submit form data collected from a user. This endpoint is typically called by the widget.

Request Body

Parameters

Response

Response Fields

Errors

File Uploads

Files are submitted as base64-encoded data URLs:
Maximum file size: 5MB per file.

Report Client Result

Report the result of a client-side form handler execution.

Request Body

Parameters

Response

Get Form Analytics

Get analytics for all forms belonging to an agent.

Query Parameters

Response

Analytics Fields

Submission Status

Form submissions progress through these statuses:

Execution Modes

Webhook Payload

When execution mode includes webhook, data is sent as:

Retry Logic

Failed webhooks are automatically retried: Maximum of 3 attempts.

Post Actions

After the primary webhook, additional actions are processed:

Slack Notification

Additional Webhook

Email Notification

Examples

Submit Contact Form

Report Client Handler Success

Get Analytics

Integration with Widget

The widget handles form submission automatically:
  1. User fills out form in widget
  2. Widget calls /form-submissions/submit
  3. Server processes webhook/post-actions
  4. If executionMode includes client, widget calls registered handler
  5. Widget calls /form-submissions/client-result with handler result