On this page
Webhooks
Real-time notifications for asynchronous requests, batches, fraud cases, production reviews and billing.
Overview
Many RDCPASS operations finish after your HTTP call returns: asynchronous requests (Prefer: respond-async), batches of up to 10,000 items, fraud cases investigated on RDCPASS's own timeline, ongoing AML monitoring, production reviews and prepaid-wallet balances. Register a webhook endpoint and RDCPASS notifies you the moment something happens, instead of you polling for it. See Single, batch & async for how asynchronous and batch requests work.
Registering an endpoint
Register HTTPS endpoints for each application from the console (Owners, Administrators and Developers can do this). Test and production have their own endpoints. Subscribe to all events, or select only the types you handle.
A public HTTPS address of at most 500 characters, never a private or local address. Test and production have their own endpoints. The webhook.test event, sent from the console, checks that your server answers.



Event catalogue
Service completions
- kyc_validation.completedSent by the API
- An asynchronous KYC validation has finished.
- face_recognition.completedSent by the API
- An asynchronous face recognition has finished.
- age_verification.completedSent by the API
- An asynchronous age verification has finished.
- kyb_verification.completedSent by the API
- An asynchronous KYB verification has finished.
- aml_screening.completedSent by the API
- An asynchronous AML/CTF screening has finished.
- credit_scoring.completedSent by the API
- An asynchronous credit scoring has finished.
- aml_screening.alertSent by the API
- Ongoing monitoring raises an alert.
Jobs and batches
- job.completedSent by the API
- An asynchronous job has completed successfully.
- job.failedSent by the API
- An asynchronous job has failed.
- batch.completedSent by the API
- A batch has finished.
- batch.completed_with_errorsSent by the API
- A batch has finished, with some items in error.
- batch.failedSent by the API
- A batch has failed.
Fraud cases
- fraud_report.createdSent by the API
- A fraud case is created.
- fraud_report.status_changedSent by the API
- The status of a fraud case changes.
Production review status
- application.production_status_changedSent by the console
- The production status of the application changes.
Billing
- billing.balance_lowSent by the console
- The wallet balance falls below the alert threshold.
- billing.invoice_issuedSent by the console
- An invoice is issued.
- billing.payment_failedSent by the console
- A top-up or an invoice payment fails.
Test
- webhook.testSent by the console
- A test event is requested.
Asynchronous requests and batches
For an asynchronous single request, RDCPASS sends two events when it finishes: the service event (for example kyc_validation.completed, whose data.object is the completed job — its result is exactly the object the synchronous call returns) and the generic job.completed or job.failed. Handle whichever suits your code — most integrations listen to the service events and ignore the job events.
For a batch, RDCPASS sends one batch.completed or batch.completed_with_errors event when the last item is processed. Its data.object is the batch summary, not the results: page through GET /v1/batches/{batch_id}/results (up to 500 items per page, using next_cursor) to read every item, and match items to your records with the reference you supplied. Results stay available for 30 days.
- Store the job or batch id returned in the 202 response alongside your own reference.
- Treat the webhook as the trigger, then read the authoritative state with GET /v1/jobs/{job_id} or GET /v1/batches/{batch_id} if you need to be certain.
- If a webhook never arrives (endpoint down beyond the retry schedule), the same data remains available by polling — webhooks are a notification, never the only copy.
Event envelope
{
"id": "…",
"type": "kyc_validation.completed",
"created_at": "…",
"environment": "test",
"application_id": "…",
"data": { … }
}- idText
- The event identifier.
- typeText
- One of the 19 events below.
- created_atDate
- When the event was created.
- environmentText
testorproduction.- application_idText
- The application concerned.
- dataObject
- The content specific to the event.
Sample payloads
{
"id": "evt_1a4c8e2f7b9d3605",
"type": "kyc_validation.completed",
"created_at": "2026-09-26T10:15:04Z",
"environment": "production",
"application_id": "app_5d20e8a1c4",
"data": {
"object": {
"id": "job_4b1d9e7a2c",
"object": "job",
"service": "kyc_validation",
"status": "completed",
"created_at": "2026-09-26T10:15:00Z",
"result_url": "/v1/jobs/job_4b1d9e7a2c",
"result": {
"id": "kyc_8d2f6a1c93",
"object": "kyc_validation",
"livemode": true,
"reference": "cust-0001",
"status": "completed",
"result": "verified",
"certified_account": true,
"identifier": {
"type": "rdcpass_id",
"value": "COD-2103-0214-4937"
},
"match": {
"full_name": "match",
"date_of_birth": "match",
"age": "match",
"score": 0.98
},
"account": {
"rdcpass_id": "COD-2103-0214-4937",
"status": "active",
"certified": true,
"created_at": "2025-03-14T09:22:41Z",
"level_of_assurance": "LOA3"
},
"kyc": {
"basic": {
"full_name": "Kabeya Mwamba Tshisekedi",
"first_name": "Kabeya",
"last_name": "Tshisekedi",
"date_of_birth": "1988-04-12",
"age": 38,
"gender": "male",
"nationality": "COD"
},
"phone_numbers": [
{
"number": "+243812345678",
"operator": "Vodacom",
"is_primary": true,
"verified": true
}
]
},
"scopes_applied": [
"kyc.basic",
"kyc.phone_numbers"
],
"scopes_withheld": [],
"purpose": "customer_onboarding",
"created_at": "2026-09-26T10:15:02Z"
}
}
}
}{
"id": "evt_5d0b3f8a1c6e2749",
"type": "batch.completed",
"created_at": "2026-09-26T10:41:18Z",
"environment": "production",
"application_id": "app_5d20e8a1c4",
"data": {
"object": {
"id": "bat_7c2e91f04a",
"object": "batch",
"service": "kyc_validation",
"status": "completed",
"total_items": 2500,
"processed_items": 2500,
"succeeded_items": 2500,
"failed_items": 0,
"created_at": "2026-09-26T10:15:00Z",
"completed_at": "2026-09-26T10:41:17Z",
"results_url": "/v1/batches/bat_7c2e91f04a/results"
}
}
}{
"id": "evt_9e2d7c4a0b1f5836",
"type": "fraud_report.status_changed",
"created_at": "2026-09-28T08:05:43Z",
"environment": "production",
"application_id": "app_5d20e8a1c4",
"data": {
"object": {
"id": "frd_2c9e4a71b0",
"object": "fraud_report",
"case_number": "RDC-FRD-2026-004812",
"type": "identity_usurpation",
"status": "confirmed",
"reporter_reference": "INC-2026-0917",
"created_at": "2026-09-26T14:02:11Z",
"updated_at": "2026-09-28T08:05:42Z"
},
"previous_attributes": {
"status": "under_review"
}
}
}Contract to be confirmed by the API team.
Delivery and headers
Every delivery is an HTTP POST with the event as the JSON body, plus three headers:
X-RDCPASS-Webhook-Id | Same value as the body’s id — read this without parsing the body, for logging or fast deduplication. |
|---|---|
X-RDCPASS-Webhook-Timestamp | Unix seconds this delivery attempt was sent. Reject deliveries with a timestamp too far from your own clock, the same way you’d guard against a replayed request. |
X-RDCPASS-Webhook-Signature | Hex-encoded HMAC-SHA256 — see Verifying the signature below. |
POST /your-webhook-endpoint HTTP/1.1
Host: yourapp.example.com
Content-Type: application/json
X-RDCPASS-Webhook-Id: evt_7f1e2a9c4b3d8f60
X-RDCPASS-Webhook-Timestamp: 1790432520
X-RDCPASS-Webhook-Signature: 9c3f7a1e2b6d4c85...
{ "id": "evt_7f1e2a9c4b3d8f60", "type": "fraud_report.status_changed", "environment": "production", ... }Contract to be confirmed by the API team.
Verifying the signature
Each endpoint has its own signing secret, prefixed whsec_test_ or whsec_live_, shown only once. Each delivery is signed by an HMAC computed over “timestamp.body”: verify it before processing the event.
Compute HMAC-SHA256 over {timestamp}.{raw_body}, using the endpoint’s signing secret (whsec_test_… or whsec_live_…, shown once when you add the endpoint) — hex-encode the result and compare it to X-RDCPASS-Webhook-Signature with a constant-time comparison, never ===.
const crypto = require('node:crypto')
// endpointSecret : le secret de signature du point de terminaison (whsec_test_… ou whsec_live_…).
function verifyWebhookSignature(endpointSecret, timestamp, rawBody, signature) {
const expected = crypto
.createHmac('sha256', endpointSecret)
.update(`${timestamp}.${rawBody}`)
.digest('hex')
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature))
}Contract to be confirmed by the API team.
The same standard HMAC primitives used for request signing in every language — see Authentication — apply here identically; only the canonical string differs.
Retry behavior
Respond with any 2xx status within 5 seconds to acknowledge an event. Anything else — a non-2xx status, a timeout, or an unreachable endpoint — is treated as a failed delivery attempt and retried on this schedule:
| Attempt | Delay since previous attempt |
|---|---|
| 1 | Immediately |
| 2 | 1 minute |
| 3 | 10 minutes |
| 4 | 1 hour |
| 5 | 6 hours |
| 6 | 16 hours (final) |
After the final attempt fails, RDCPASS stops retrying and marks the event as permanently failed. Failed events remain visible from the console, where they can be redelivered.
Idempotency and ordering
Acknowledge an event as soon as you’ve durably queued it for processing, before doing any slow work — a delivery that times out on your end is indistinguishable from one that never arrived, so RDCPASS retries it. Because of this, the same id can arrive more than once. Store processed event IDs and skip any you’ve already handled.
Events are not guaranteed to arrive in the order they occurred — a retried fraud_report.status_changed can arrive after a later one. Compare created_at (or the resource’s updated_at) with what you have stored before applying a change.
Rate limits and billing
Webhook deliveries are neither metered against your application’s quota nor billed — see Rate limits & quotas for the limits that apply to the calls that create the events in the first place.



