Webhooks
A webhook destination is an https address in your system that receives events from Verify.
Add a destination
Open Developers, then Webhooks, and add a destination in the console. Give it a name, its https address and the events it should receive. Each project can hold up to 10 destinations. An address can be up to 2048 characters long.
Sandbox destinations are created on a shared sandbox application. Treat sandbox deliveries as shared across projects, and do not send real personal data through a sandbox destination.
Events you can subscribe to
status.updateddata.updateduser.status.updateduser.data.updatedbusiness.status.updatedbusiness.data.updatedactivity.createdtransaction.createdtransaction.status.updatedtravel_rule.status.updatedworkflow.compliance_changed
Check a signature with the SDK helper
For the signature check, the SDK helper expects X-Signature-V2, an HMAC-SHA256 signature in hex, and X-Timestamp, a time in seconds. Delivery header names are not documented until a sandbox delivery is captured. The signing secret of a destination is shown once, when you add the destination. Copy it then: the console keeps only its last four characters.
The Verify SDK includes a verifyWebhook helper that performs this check. Points to know when you check a signature:
- The SDK helper checks the signature against the canonical form of the parsed body: the keys sorted at every level, written as compact JSON. It does not check the raw bytes of the request, so use the helper rather than hashing the raw body.
- When X-Timestamp is passed to the SDK helper, a delivery more than 300 seconds away from the clock of the checking server is rejected. Keep your server clock in sync.
- The SDK helper compares signatures in constant time.
Duplicates and retries
If your endpoint receives the same event more than once, handling it a second time should have no extra effect. Answer with a 2xx status once you have stored the event. The schedule on which failed deliveries are retried is not yet published in these docs.