SupaKnock
Menu
Browse topics Webhooks
← Developer reference

Connect your app

Webhooks

Receive signed events and connect replies to your app’s notifications.

New to webhooks? Start with the support-reply notification guide.

Configure a project webhook in its settings or at /api/v1/projects/{project}/webhook. Save the signing secret when created or rotated. Request events cover creation, edits, acceptance, rejection, status changes and deletion. chat.message_created covers customer, administrator and optional AI messages without including message text.

  1. Verify X-Feedback-Signature using HMAC-SHA256 over the timestamp, a dot and the raw request body. Verify before parsing or reserializing JSON.
  2. Use a constant-time comparison and a five-minute timestamp tolerance. Keep clocks synchronized.
  3. Persist and deduplicate X-Feedback-Event-ID. Return 2xx after safely recording or processing the event. Delivery can repeat or arrive out of order.

Use Send test webhook, then inspect delivery history. Failed jobs can be retried at /api/v1/projects/{project}/deliveries/{id}/retry. Existing jobs keep the original destination and signing secret after settings change; allow old secrets until those jobs finish.

Notify a customer about a human chat reply

Subscribe to chat.message_created and filter message.sender_role === "admin". Map customer.external_user_id within project.id to your app account. Deduplicate the event ID, then use your app’s push provider and that user’s registered devices. The webhook has no message body; open the conversation using the customer’s authorized chat session. Anonymous visitors have no external account ID. AI events omit customer identity. The SupaKnock relay sends administrator alerts, not customer pushes for your app.

Notify the right people

When a request ships, its event is request.status_changed with status: "shipped". Fetch /api/v1/requests/{id}/audience with audience:read to obtain the current creator/voter identities. Paginate, map external IDs to your accounts and send notifications from your backend. SupaKnock does not send these emails for you.

The full raw-body verification example, event payloads and retry schedule are in the repository's docs/webhooks.md and the OpenAPI specification.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.