Webhooks
Webhooks send event notifications to your integration. Open Settings → Webhooks under Developer. You need permission to manage the endpoint; some roles can manage only their own endpoints.
Configure and test an endpoint
- Select Create webhook.
- Enter the endpoint details and select event subscriptions offered by the form.
- Use a public HTTPS receiver. Private/loopback addresses and redirects are not supported for normal endpoint delivery.
- Save and copy the signing secret when shown; store it securely at your receiver.
- Use Send test event.
- Inspect endpoint deliveries and confirm your receiver accepts and verifies
webhook.test.
Keep the endpoint enabled to receive events. Disabled or deleted endpoints have pending deliveries skipped.
Event types
| Family | Events |
|---|---|
| Delivery | email.delivered, email.deferred, email.bounced, email.failed |
| Engagement | email.opened, email.clicked, email.replied |
| Recipient preferences | contact.unsubscribed |
| Conversations | conversation.created, conversation.assigned, conversation.reassigned, conversation.status_changed, conversation.note_added |
| Connection test | webhook.test |
Internal-note events carry note metadata, not the note’s text. Retrieve text through the separately scoped API only when your integration is authorized to access it.
Verify before processing
Requests include Notiva-Event-Id, Notiva-Event-Type, Notiva-Timestamp, and Notiva-Signature. The JSON envelope includes id, type, created_at, workspace_id, and data.
Calculate HMAC-SHA256 with the signing secret over the timestamp, a dot, and the raw request body. The signature header is v1= followed by the hexadecimal digest. Compare in constant time and reject timestamps outside your accepted window, such as five minutes. Parsing and reserializing JSON changes the signed bytes.
import { createHmac, timingSafeEqual } from 'node:crypto';
export function verifyFikaWebhook(rawBody, timestamp, signature, secret) { if (!/^\d+$/.test(timestamp ?? '')) return false; if (!/^v1=[0-9a-f]{64}$/.test(signature ?? '')) return false; const seconds = Number(timestamp); if (!Number.isSafeInteger(seconds)) return false; if (Math.abs(Date.now() / 1000 - seconds) > 300) return false; const expected = 'v1=' + createHmac('sha256', secret) .update(timestamp + '.') .update(rawBody) .digest('hex'); return timingSafeEqual(Buffer.from(expected), Buffer.from(signature));}Call this with the raw body bytes and header values supplied by your HTTP framework. Verify first, then parse and durably record the event ID. Deduplicate repeated event IDs before applying side effects.
Delivery and retries
Return a 2xx response after accepting the event. Any other response or connection failure triggers retries. Default retry intervals are one minute, five minutes, thirty minutes, two hours, and six hours after the preceding failed attempt.
Retries retain the event ID and payload, with a fresh signature timestamp. Do not process them as new events. Do not rely on arrival order when updating your own records.
Open the endpoint’s delivery list to inspect status, attempts, response codes, and errors. Fix the receiver before manually retrying a failed delivery.
Roll the signing secret
The endpoint’s Roll secret action immediately replaces the current secret. Update your receiver for the new value; the old secret stops working. Plan the switch to avoid rejecting the next delivery.
Use Developer → Activity to audit endpoint and secret changes. Never include API keys or webhook secrets in support screenshots.