Webhooks
kyc_session.failed
Fired when a KYC session fails verification
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fired when a KYC session fails verification
kyc_session.failed{
"kycSessionId": "kycs_abc123",
"externalUserId": "your-user-id-123",
"status": "failed"
}
| Field | Type | Description |
|---|---|---|
kycSessionId | string | KYC session ID |
externalUserId | string | Your external user ID linked to this session |
status | string | Always "failed" for this event |
| Status code | Meaning |
|---|---|
200 | Event received and processed |
202 | Event received, will process asynchronously |
| Any non-2xx | Delivery failed — will retry |
app.post("/webhooks/contro", (req, res) => {
const eventType = req.headers["x-contro-event"];
if (eventType === "kyc_session.failed") {
const { kycSessionId, externalUserId } = req.body;
// Notify the user that KYC failed and they may need to retry
}
res.status(200).send("OK");
});