Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.politicalcomms.com/llms.txt

Use this file to discover all available pages before exploring further.

Webhooks deliver real-time notifications when events occur in your account. Common use cases include CRM integration, analytics pipelines, alerting, and triggering automated follow-up campaigns.

Use cases

CRM integration

Update contact records when messages are delivered or fail.

Analytics pipelines

Stream click data to your data warehouse for analysis.

Alerting

Notify staff when constituents reply to messages.

Automation

Trigger follow-up campaigns based on engagement.

Five event types

How webhooks flow

1

An event occurs

A message is sent, delivered, fails, gets a reply, or a tracking link is clicked.
2

We POST the payload to your endpoint

Signed with HMAC-SHA256 over the JSON body, with headers identifying the event type, ID, and timestamp.
3

Your endpoint validates and acknowledges

Validate the signature, persist or queue the event for processing, and return 200 within 10 seconds.
4

If your endpoint fails, we retry

Four total attempts with exponential backoff (immediate, +4s, +16s, +64s). After that, the delivery is marked failed and you can retry manually from the dashboard.

Where to go next

Set up an endpoint

Configure event subscriptions, copy your signing secret, and send a test webhook.

Validate signatures

HMAC-SHA256 validation pattern with a Node.js example.

Event payload reference

Full JSON samples for every event type.

Retry policy

Schedule, best practices, and how to make handlers safely idempotent.