Webhooks
Overview
Webhooks provide real-time notifications about verification status changes, eliminating the need for frequent API polling. By configuring a webhook URL, you can receive instant updates on verification events.
Setting up Webhooks
Provide Webhook URL
When initiating a verification request, include the webhook_url
parameter in the request body.
Receiving Webhooks
Receive HTTP Request
When a verification event occurs, BIVE will send an HTTP POST request to your specified webhook_url
.
Inspect Request Body
The request body will contain a JSON payload with the following structure:
Verify Signature
The request header will contain an
X-Biveai-Signature
key.Calculate the SHA256 hash of the request body using your API key.
Compare the calculated hash with the value of the
X-Biveai-Signature
header.If the hashes match, the webhook is valid.
Implementation Examples
Example PHP / Laravel
Process Webhook Data
Process the event data based on the event name.
Webhook Event List
verification.completed
Sent when a verification is completed
PersonVerficationObject | BusinessVerificationObject
Last updated
Was this helpful?