Skip to main content

Webhooks

NetPad can send webhook events to external services.

Webhook Eventsโ€‹

Form Submittedโ€‹

Triggered when a form is submitted.

Payload:

{
"event": "form.submitted",
"formId": "form_123",
"submissionId": "sub_456",
"data": {
"name": "John Doe",
"email": "john@example.com"
},
"metadata": {
"submittedAt": "2024-01-15T10:00:00Z",
"ipAddress": "192.168.1.1"
}
}

Workflow Completedโ€‹

Triggered when a workflow completes.

Payload:

{
"event": "workflow.completed",
"workflowId": "wf_123",
"executionId": "exec_456",
"status": "completed",
"output": {...}
}

Configuring Webhooksโ€‹

In Form Settingsโ€‹

  1. Open Form: Go to form settings
  2. Webhooks: Click "Webhooks" tab
  3. Add Webhook: Enter webhook URL
  4. Save: Webhook configured

Webhook URLโ€‹

Your webhook endpoint should:

  • Accept POST requests
  • Return 200 status for success
  • Handle errors gracefully
  • Be publicly accessible

Webhook Securityโ€‹

Signature Verificationโ€‹

(Optional) Verify webhook authenticity:

  • Signature Header: X-NetPad-Signature
  • Algorithm: HMAC-SHA256
  • Secret: Configure in settings

Retry Policyโ€‹

  • Retries: 3 attempts
  • Backoff: Exponential backoff
  • Timeout: 30 seconds per attempt

Testing Webhooksโ€‹

Test Endpointโ€‹

Use a test service:

  • webhook.site: Test webhook receiver
  • RequestBin: Temporary webhook endpoint
  • Your Server: Your own endpoint

Verify Deliveryโ€‹

  • Check webhook logs
  • Verify payload received
  • Confirm processing