🎯 Webhook Events Subscription
16 days ago by Assad Aboultaif
🎯 Webhook Events Subscription
- Webhooks now support selective event subscription, allowing you to control which events trigger notifications to your endpoint.
- When creating or updating webhooks, you can now specify an optional
eventsarray to subscribe only to the events you need:verification.completed- Triggered when a verification is fully completed with all data availableverification.historical- Triggered when historical data becomes available during verification processing
- If the
eventsparameter is not provided, webhooks default to all available events (backward compatible behavior). - This feature helps reduce unnecessary webhook traffic and allows your endpoint to process only relevant events.
🆕 Updated Endpoints
POST /webhooks - Now accepts optional events parameter:
{
"endpoint_url": "https://yourapi.com/webhook/handler",
"description": "Production webhook",
"events": ["verification.completed", "verification.historical"],
"authentication": { ... }
}PATCH /webhooks/webhook_id - Can update event subscriptions:
{
"events": ["verification.completed"]
}⚠️ Validation Rules
- Empty array: Providing an empty
eventsarray returns a400 Bad Requesterror. At least one event type must be specified. - Invalid event types: Providing unrecognized event types returns a
400 Bad Requesterror with details about which events are invalid. - Both error responses include the list of allowed event types for reference.
💡 What This Means for You
- No breaking changes — existing webhooks continue to receive all events by default.
- Reduced traffic — subscribe only to the events your application needs, minimizing unnecessary webhook calls.
- Better control — easily update event subscriptions without recreating webhooks.
- Common use cases:
- Subscribe only to
verification.completedif you only need fully processed verifications - Subscribe only to
verification.historicalif you want to process data as it becomes available - Subscribe to both events if you need real-time updates throughout the verification lifecycle
- Subscribe only to
- Check our webhook documentation for more details on event types and payload structures.
