API reference
Webhook events
Every webhook request carries one event. This page lists the event object and its types. For setup and signatures, read the Webhooks guide.
The event object
| Field | Meaning |
|---|---|
id | Delivery id. It stays the same across retries, so use it to skip duplicates. |
type | The event type, such as verification.completed. |
createdAt | When the event happened (ISO 8601, UTC). |
data | The object of the event. For session events it is the session. |
Event types
| Type | data |
|---|---|
verification.created | The session, same shape as GET /v1/verifications/:id. |
verification.started | The session, same shape as GET /v1/verifications/:id. |
verification.step_completed | The session plus step: nodeId, serviceCode and outcome of the step that finished. |
verification.completed | The session, same shape as GET /v1/verifications/:id. |
verification.expired | The session, same shape as GET /v1/verifications/:id. |
verification.cancelled | The session, same shape as GET /v1/verifications/:id. |
webhook.ping | endpoint: the code of the endpoint that was tested. |
Example: a finished step
After the Shahkar step of a flow returns match, the endpoint receives:
{
"id": "01JD7Z4BQ8YH2M6N1V5C3X9R0T",
"type": "verification.step_completed",
"createdAt": "2026-11-30T09:41:08.204Z",
"data": {
"id": "01JD7Z1W3J8X0V4Q9T6M2K5R8N",
"flowCode": "01JD7YQK2D1C4M2V7R9T3B6N8P",
"externalRef": "customer-1042",
"metadata": {
"plan": "gold"
},
"locale": "fa",
"status": "in_progress",
"outcome": null,
"currentNodeId": "n_face",
"steps": [
{
"nodeId": "n_shahkar",
"serviceCode": "shahkar_match",
"status": "completed",
"outcome": "match",
"result": {
"provider": "jibit",
"score": null,
"reasons": [],
"data": {
"nationalCode": "00******48",
"mobile": "0912*****67",
"cached": false
}
},
"submittedAt": "2026-11-30T09:41:07.000Z",
"completedAt": "2026-11-30T09:41:08.000Z"
}
],
"expiresAt": "2026-12-01T09:40:00.000Z",
"startedAt": "2026-11-30T09:41:02.000Z",
"completedAt": null,
"createdAt": "2026-11-30T09:40:00.000Z",
"step": {
"nodeId": "n_shahkar",
"serviceCode": "shahkar_match",
"outcome": "match"
}
}
}