Dynamic Webhooks
Overview
This solution allows webhook events to be dynamically routed to multiple paths within the same base domain, providing enhanced flexibility for handling event-driven workflows.
Key Benefits
Dynamic Webhook Callbacks: Easily define custom callback paths at runtime to suit your integration needs.
Technical Implementation
- Specifying the Callback URI: During the initial
POSTCreate Verification Session API call, include the full callback URI to indicate where the webhook event should be sent. - Webhook Event Delivery: Webhook events will be routed to the specified path provided in the
POSTAPI call, ensuring precise delivery to your endpoint. - Finalizing the Process: After receiving the webhook event, complete the
GETAPI call to retrieve and process the final verification details, completing the workflow seamlessly.
Example Request
curl --request POST \
--url https://verified.clearme.com/v1/verification_sessions \
--header 'accept: application/json' \
--header 'content-type: application/json'
--data '{
"project_id": "project_xyz",
"callback_url": "https://www.example.com/clear_event?uuid=9d7f4c4f-d110-42f8-82e1-33a56bf1fbac",
"callback_headers": {
"Authorization": "Bearer xyx"
}
}'The base domain must still be registered on the CLEAR dashboard along with all relevant events selected.
Updated 2 days ago
Did this page help you?