Skip to main content
When a workflow runs in your account, Youverify can tell your server what happened. This page describes the six workflow webhook events, what your receiver must set up to consume them, how delivery and retries work, and the exact fields of every payload. Subscribe to these events to build real-time fraud and compliance responses in your own systems. Workflow webhooks are sent for runs you start with the Send an Event endpoint (POST /v2/api/workflows/events) and for runs your workflows start themselves.
The JSON examples on this page use illustrative values. They are not captures from a live run.

Event catalogue

There are six events. Every name has the form object.action, and the object tells you what data is. Youverify never sends an event name that is not in this table.

Rules that apply to every event

  • Live runs only. A shadow run never sends a webhook, including for its screening checks and failures.
  • No URL, no webhook. If your business has no webhook URL registered for the environment, nothing is sent.
  • At least once, unordered. The same event can arrive more than once, and events can arrive out of order. De-duplicate on the x-youverify-event-id header.
  • Best effort publishing. If Youverify cannot queue a webhook, the failure is logged and the workflow run is not affected.

What you need to connect

Your receiver needs two things from Youverify for each environment. There is no API key, bearer token or OAuth on the outbound call. Youverify authenticates itself to you with a signature.
  • Each environment is separate. Sandbox and production each have their own webhook URL and their own signing secret.
  • Registration is done for you. Contact your account manager or support@youverify.co to register your URL. They also give you the signing secret. There is no self-service endpoint for this.
  • Both are required. If no URL is registered for the environment, the delivery is skipped. Without a signing secret the signature cannot be computed, so a URL without a secret does not work.
This is separate from the callback URL you set under Settings → API KEY / Webhook for KYC events. Workflow events use their own URL and signing secret, and the signature scheme described below.

What your receiver must do

1

Expose an HTTPS endpoint

Accept POST requests with Content-Type: application/json.
2

Read the raw body

Read the raw body bytes before any JSON parsing. A body that has been parsed and serialised again breaks the signature.
3

Check the timestamp

The x-youverify-timestamp header must be within 5 minutes of your own clock. This protects you against replayed requests.
4

Verify the signature

Compute the hex HMAC-SHA256 of <x-youverify-timestamp>.<raw body> with your signing secret. Compare it with the x-youverify-signature-v2 header in constant time. Answer 401 on a mismatch.
5

De-duplicate, queue and acknowledge

Skip any x-youverify-event-id you have already handled, put the body on a queue, and answer with a 2xx status within 30 seconds.

Reference verification (Node.js)

What Youverify sends

Envelope

Every event has the same envelope. Only data changes.

Headers

Delivery and retries

Success is any 2xx response, and the timeout is 30 seconds. A failed delivery is retried after 1, 6, 12, 18 and 24 hours, which makes six attempts in all. After that the event is dropped.
There is no manual resend. If your receiver is down for longer than the retry window, you lose those events, and Youverify does not replay them. Read the missed results with the Workflow Events Management endpoints in the API Reference instead, for example GET /v2/api/workflows/evaluations/{evaluationId}.

Public IDs

IDs such as entityId and workflowId in data use their public form (ent_..., wfw_...), the same as in API responses.

Linking an event back to its evaluation

  • For evaluation.* events, the evaluation ID is data.id.
  • For alert.*, case.resolved and aml_check.completed, it is data.evaluationId.

Payloads

alert.created

Sent the moment an alert node fires, before the run ends. The decision at this point is never final. data is the alert body. It carries the event’s own data in eventData.
Example: alert.created

evaluation.completed and evaluation.failed

Both events have the same shape. data is the run’s record plus its full node-by-node process.
Example: evaluation.completed

How evaluation.failed differs

  • status is FAILED.
  • outcome is { "result": null, "flagged": [] }.
  • failureReason is set when a failed node had an error, for example “a screening node had no name to screen and a detection condition needs its result”.

alert.resolved and case.resolved

Sent when an analyst resolves the alert or the case. data.object is alert or case.
Example: case.resolved

aml_check.completed

Sent after an evaluation.completed event that carried status: SUCCESS_PENDING_AML_CHECK, when the queued PEP, sanction or adverse media check finishes. The result cannot change the decision.
Example: aml_check.completed

Typical sequences

Order is not guaranteed on the wire. Do not depend on it. Use data.evaluationId (or data.id for evaluation.*) to correlate events, and use the status field of evaluation.completed to know whether a follow-up event is expected.

Which follow-up event to expect

Go-live checklist

  • Your HTTPS URL is registered, and you hold the signing secret for each environment. Sandbox and production are separate.
  • Your endpoint reads the raw body bytes and verifies x-youverify-signature-v2 over <timestamp>.<raw body> in constant time.
  • The 5 minute timestamp tolerance is enforced, and a mismatch returns 401.
  • Events are de-duplicated on x-youverify-event-id, and your handling is idempotent.
  • Your handler queues the work and returns a 2xx well inside 30 seconds.
  • Your logic does not depend on event order. Correlation uses the evaluation ID.
  • You expect live runs only. Shadow runs never produce webhooks.
  • Your outage plan covers the retry window, which ends after the 24 hour attempt. There is no manual resend.

Webhooks overview

Registration and signatures for KYC events.

KYC webhooks

Identity and address verification events.