Skip to main content

Webhook Configuration

Learn how to create, configure, and manage webhooks in Pollarix.

Setup Overview​


Creating a Webhook​

1

Access Webhook Settings

Log in to Pollarix dashboard → Department Settings → Webhooks

2

Create New Webhook

Click the 'New Webhook' button to open the configuration form

3

Configure Settings

Enter webhook name, URL, and select events to subscribe

4

Add HTTP Headers

Optional: Add authentication headers for security

5

Test Webhook

Send a test payload to verify your endpoint

6

Save & Activate

Save your webhook - it will be active immediately


Configuration Fields​

Webhook Name​

A descriptive name to identify your webhook:

Example: CRM Sync
Example: Team Alerts
Example: Survey Completion Notifier

Webhook URL​

The HTTPS endpoint where Pollarix will send webhook payloads:

https://your-server.com/webhooks/pollarix
https://api.yourcompany.com/integrations/pollarix
URL Requirements
  • Must be a valid URL format
  • HTTPS is strongly recommended for production
  • The endpoint must be publicly accessible
  • Ensure your server can handle POST requests

Events​

Select one or more events that will trigger this webhook:

EventDescriptionCommon Use Cases
SURVEY_COMPLETEDRespondent finishes a surveySync to CRM, send alerts
SURVEY_STATUS_CHANGEDSurvey status is modifiedUpdate dashboards
COUPON_REDEEMEDCoupon is distributedTrack rewards, inventory

HTTP Headers​

Add custom headers to authenticate or identify webhook requests.

Recommended for most use cases:

Header KeyExample Value
X-Webhook-Secretyour-random-secret-here
Generate a secure token
openssl rand -hex 32

Adding Headers:

  1. Expand the HTTP Headers section
  2. Click Add to create a new header row
  3. Enter the header key and value
  4. Repeat for additional headers
Security Best Practice

Always use custom headers or tokens to verify that incoming webhooks are genuinely from Pollarix. See Security Best Practices for more details.


Testing Your Webhook​

Use Send Test to check that Pollarix can reach the URL. Pollarix posts a fabricated response in a test envelope with department_id and a placeholder for the secret. The test uses a different shape from the signed event envelope.

Test Steps​

  1. In the webhook form, enter a public HTTPS URL for a test receiver you control.
  2. Click Send Test and confirm your test receiver observed the request.
  3. Save the endpoint and trigger a synthetic survey response in your test department to verify the actual signed delivery.

The connection check sends Content-Type: application/json. Custom headers, X-Signature, Idempotency-Key, and X-Pollarix-Schema-Version apply to regular deliveries. Keep signature verification enabled on the real event endpoint.

If Test Fails​

  • Confirm the endpoint is reachable from the internet and has a valid HTTPS certificate.
  • Check your receiver's logs to distinguish a connection failure from a rejected request.
  • Check the signed delivery separately to verify required headers and payload handling.

Managing Webhooks​

Viewing Webhooks​

The webhooks list displays:

ColumnDescription
NameWebhook identifier
URLTarget endpoint
StatusActive/Inactive indicator
EventsSubscribed event types

Filtering Webhooks​

Use the filter buttons to view:

  • All - All webhooks
  • Active - Only enabled webhooks
  • Inactive - Only disabled webhooks

Use the search bar to find webhooks by name or URL.

Editing a Webhook​

  1. Click the More Actions menu (⋮) on a webhook card
  2. Select Edit
  3. Modify the configuration
  4. Click Save

Enabling/Disabling Webhooks​

Toggle the switch on any webhook card to enable or disable it without deleting.

info

Disabled webhooks retain their configuration but won't receive any events.

Deleting a Webhook​

  1. Click the More Actions menu (⋮)
  2. Select Delete
  3. Confirm the deletion
Warning

Deleting a webhook is permanent and cannot be undone. Any integrations depending on this webhook will stop receiving events.


Webhook Limits​

AspectLimit
Eligible plansPro and Enterprise
Events per webhookSelect one or more supported events
Payload timeout30 seconds

Troubleshooting​

Webhook Not Receiving Events
  1. Check Status: Ensure the webhook is active (toggle is ON)
  2. Verify URL: Confirm the endpoint is accessible from the internet
  3. Check Events: Verify you've subscribed to the correct events
  4. Test Webhook: Use the test feature to debug connectivity
  5. Check Server Logs: Review your server logs for incoming requests
Test Webhook Fails
  • Verify your endpoint URL is correct
  • Ensure your server is running and publicly accessible
  • Check firewall rules allow incoming connections
  • Verify SSL certificate is valid (for HTTPS)
  • Check the connection with a temporary test receiver you control and keep survey data out of connectivity traces
Duplicate Events

If you're receiving duplicate events:

  • Use the Idempotency-Key header to identify retries of the same event
  • Check if multiple webhooks are configured for the same event
  • Verify your endpoint returns a 2xx status code promptly
Delayed Events

Webhook delivery may be delayed if:

  • Your server responds slowly or times out
  • Previous webhook calls failed and are being retried
  • High volume of events in queue

Solution: Ensure your endpoint responds quickly and processes data asynchronously.


Next Steps​

Was this page helpful?