What webhooks unlock
Polling the Rereflect API for new feedback works, but it introduces latency proportional to your polling interval and burns API quota on requests that often return nothing new. Webhooks invert that model: Rereflect calls you when something happens, and your system reacts immediately.
The practical effect is that a high-urgency piece of feedback can trigger a Slack alert, create a Linear issue, update a CRM record, or kick off a custom workflow within seconds of the AI analysis completing — with no polling loop and no human in the middle.
Event types
Rereflect currently fires webhooks on the following event types. You subscribe to the ones you care about when configuring a webhook endpoint.
- feedback.analyzed — fires after the AI pipeline finishes processing a piece of feedback. Payload includes the raw content, all AI-assigned labels, scores, and categories.
- feedback.urgent — fires when a feedback item is flagged as urgent (churn risk, explicit cancellation intent, or a high-severity pain point). A subset of feedback.analyzed events.
- customer.health_changed — fires when a customer's computed health score crosses a threshold (configurable). Useful for CRM sync or proactive outreach triggers.
- pain_point.threshold_reached — fires when a pain point category reaches a count you set (e.g., 10 mentions of "billing" this week). Useful for issue-tracker automation.
- feature_request.threshold_reached — same pattern for feature requests.
Payload shape
All webhook events follow the same envelope structure:
{ "event": "feedback.analyzed", "occurred_at": "2026-11-12T14:23:01Z", "organization_id": "org_abc123", "data": { "feedback_id": "f_xyz789", "content": "...", "source": "intercom", "sentiment": "negative", "sentiment_score": 0.12, "pain_point_category": "billing", "is_feature_request": false, "is_urgent": true, "customer_id": "cust_def456", "analyzed_at": "2026-11-12T14:23:00Z" } }
The data object shape varies by event type — a pain_point.threshold_reached event carries the category, the count, and the time window rather than a single feedback record. The envelope fields (event, occurred_at, organization_id) are always present.
Delivery behavior and retries
Rereflect delivers webhooks over HTTPS with a 10-second timeout per attempt. If your endpoint returns a non-2xx status or times out, Rereflect retries with exponential backoff — once after 30 seconds, once after 5 minutes, once after 30 minutes. After three failed attempts, the event is marked as failed and logged; it will not be retried further.
Implications for your consumer:
- Respond fast — return 200 immediately and process the payload asynchronously. If your handler does expensive work (a Linear API call, a database write) synchronously, you risk timeouts under load.
- Idempotency — you may receive the same event more than once (network issues can cause re-delivery even after a 200). Use the feedback_id or a compound (event, feedback_id) key to deduplicate.
- Verify the source — Rereflect signs webhook payloads with an HMAC-SHA256 signature in the X-Rereflect-Signature header. Always verify this before processing the payload to prevent spoofed requests.
Registering and managing endpoints
Webhook endpoints are managed through the Rereflect UI (Settings → Integrations → Webhooks) or via the API (POST /api/v1/webhooks). Each endpoint has a URL, a list of subscribed event types, and an auto-generated signing secret.
You can register multiple endpoints — one for your Slack handler, one for your Linear handler, one for your CRM sync — each subscribed to only the event types it needs. Event routing is per-endpoint, not global. The delivery log in the UI shows the HTTP status and response body for recent deliveries, which is useful for debugging consumer failures without needing to instrument your own handler.