> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks Overview

> Understand how iDenfy webhooks deliver verification results via HTTP POST, including setup, payload structure, and retry handling.

## How Webhooks Work

When a verification completes (or changes status), iDenfy sends an HTTP POST request to your configured webhook URL with the verification result.

```
Customer completes verification
        ↓
iDenfy processes (AI + human review)
        ↓
POST webhook to your endpoint
        ↓
Your server processes the result
```

## Setting Up Webhooks

1. Go to [Dashboard → Settings → Webhooks](https://documentation.idenfy.com/guides/dashboard/settings/system-notifications-webhooks-emails.md)
2. Enter your webhook URL (must be HTTPS)
3. Select which events to receive

> [!WARNING]
>
> Your webhook endpoint must respond with a **2xx status code** within **10 seconds**. If it doesn't, iDenfy will retry the delivery.

## Webhook Types

| Service | Webhook docs | Key statuses |
| - | - | - |
| **KYC** | [KYC Webhooks →](https://documentation.idenfy.com/kyc/webhooks.md) | APPROVED, DENIED, SUSPECTED, EXPIRED |
| **KYB** | [KYB Webhooks →](https://documentation.idenfy.com/kyb/webhooks.md) | Company verification results |
| **AML** | [AML Monitoring →](https://documentation.idenfy.com/aml/monitoring-retrieve.md) | Hit/no-hit on sanctions, PEPs, adverse media |
| **Bank Card** | [Bank Card Webhooks →](https://documentation.idenfy.com/bank-card/webhooks.md) | MATCH, NO\_MATCH, NOT\_COMPARED |

## Webhook Timing

iDenfy sends webhooks at different stages:

| Timing | When | Contains |
| - | - | - |
| **Instant** | Customer completes verification UI | Auto-check results (AI) |
| **Prompt** | Within minutes | Manual review results (human) |
| **Delayed** | Monitoring triggers | Ongoing AML monitoring hits |

> [!NOTE]
>
> The `final` field in the webhook payload indicates whether this is the definitive result. When `final: true`, iDenfy will not send any further webhooks for this verification.

## Security

Always verify webhook authenticity:

1. **[Callback signing](https://documentation.idenfy.com/security/callback-signing.md)** — verify the HMAC signature on every webhook
2. **[IP whitelisting](https://documentation.idenfy.com/security/ip-whitelisting.md)** — only accept requests from iDenfy's IP ranges

## Best Practices

* **Process asynchronously** — acknowledge the webhook immediately (return 200), then process in the background
* **Handle duplicates** — use `scanRef` as an idempotency key
* **Log everything** — store the full webhook payload for debugging and compliance
* **Handle retries** — if your endpoint is temporarily down, iDenfy will retry
* **Verify signatures** — never trust an unsigned webhook in production


## Related topics

- [SDK Overview](https://documentation.idenfy.com/sdks/overview.md)
- [System Notifications for Webhooks and Emails](https://documentation.idenfy.com/guides/dashboard/settings/system-notifications-webhooks-emails.md)
- [Age Estimation Overview](https://documentation.idenfy.com/guides/dashboard/age-estimation/overview.md)
- [AML Migration Guide](https://documentation.idenfy.com/aml/migration-guide.md)
- [Identity Verification in KYB Flow](https://documentation.idenfy.com/guides/dashboard/kyb/identity-verification-on-kyb-custom-flow.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.