Skip to main content
Humanos provides a comprehensive webhook system that allows organizations to receive real-time notifications when specific events occur in their processes. You can configure several endpoints, and every endpoint receives every event type.

Event Payload

All webhook events share a common base structure:
string
required
The event type: credential, identity, otp.failed, or test.
string
required
API version the payload is formatted for, given as YYYY-MM-DD. A payload formatted for a version before 2026-10-16 also carries it as api_version.
string
required
Identifier of the request this event belongs to.
string
required
DID of your organization, the issuer.
string
Your internal identifier for the request, if you set one.
object
required
The subject the event concerns.
Then, keyed by eventType, each event adds its own fields. Pick the event you are handling:
object
required
The credential that was decided.
object
required
The subject’s decision on the credential.

Versioning

By default, each delivery is formatted for the API version its request was created under: the API-Version header sent on POST /request, or else the version pinned to the API key. You can optionally pin an endpoint to a fixed version in the Humanos Dashboard; a pinned endpoint receives every event in that version’s format. Every webhook payload includes an apiVersion field so you always know which format it uses. What changed in each version is in the changelog. For more details on how versioning works across the API and webhooks, see API Versioning.

Configuration

To configure webhooks, organization administrators can open Webhooks in the Humanos Dashboard. Each endpoint has the following settings:
  • Endpoint URL is an HTTPS endpoint where webhook events are delivered, for example https://your.domain.com/webhook. Each endpoint gets its own secrets and salt, shown once when you create or rotate them, plus optional Basic Auth and an optional API version pin.
  • Webhook Signature Secret is used for validating that the webhooks were sent by Humanos.
  • Webhook Encryption Secret is used for decrypting the payloads, ensuring security in transit.
  • Webhook Encryption Salt is used together with the Webhook Encryption Secret to derive the final encryption key. The salt adds uniqueness and protects against dictionary or pre-computed attacks, ensuring stronger security for each payload.
The provided code snippet implements an Express app containing an endpoint to deal with Humanos Webhook notifications. The request should be handled as follows:
  1. Receive the request → Your endpoint will be called with an encrypted payload.
  2. Verify authenticity → Check the x-signature header using your Webhook Signature Secret.
  3. Decrypt the payload → Use the Webhook Encryption Secret and Webhook Encryption Salt to decrypt the message and read the event data.
  4. Process the event → Store it in your system, update statuses, or trigger business logic.
  5. Respond quickly → Return a 2xx status, such as 200 OK, within 10 seconds. Any other answer is a failed delivery; see Failed deliveries.

Which endpoints are notified

By default, each of your endpoints receives the events of every request. When your organization runs more than one integration, you can have an endpoint receive only the requests that select it.

Receives

Each endpoint’s Receives setting on the Webhooks page decides which requests notify it:
  • All requests of this organization, the default: every request notifies the endpoint, unless the request lists its own endpoints.
  • Only requests that select this endpoint: only the requests that select it notify it.
The setting applies when each event is sent, so changing it also affects requests already in progress.

How a request selects endpoints

A request settles which endpoints it notifies when it is created: An API key selects endpoints under Default webhook endpoints on the API Keys page, and a workflow under its Notify System step in Workflows. Requests created in the dashboard can pick their endpoints under Advanced → Notify endpoints. webhookEndpoints takes up to 20 IDs, each one of your organization’s endpoints; otherwise the request is refused with 400. Copy an endpoint’s ID from its card on the Webhooks page. For example, alongside the rest of the request body:
A request keeps the endpoints it selected: changing an API key’s defaults or a workflow’s endpoints later only affects new requests. Test webhooks sent from the dashboard go to the endpoints you choose, whatever these settings say.

Failed deliveries

Any 2xx response counts as delivered. For anything else, your endpoint’s answer decides what Humanos does next: A delivery stops 24 hours after its event, however many attempts it has left. Every attempt is listed under Logs on the Webhooks page, where you can also redeliver an event for up to 7 days.

Paused endpoints

An endpoint that keeps refusing deliveries is paused automatically: for example after a 410, when its credentials stop working, or when it has failed for days. Your organization’s technical members get an email, and the endpoint shows Parked on the Webhooks page. While it is paused:
  • New events for it are held, not sent. They show as Not sent in the logs.
  • Humanos tests it with one of the held events 1, 4 and 12 hours after the pause, then once a day.
  • As soon as it accepts that event, deliveries resume on their own and the other held events are re-sent, oldest first. Your technical members get a second email.
Once your endpoint is fixed, you don’t have to wait for the next test: choose Resume deliveries on it to resume at once and re-send the held events. Pause deliveries holds events the same way, for example while you maintain your endpoint. Held events can be re-sent for 7 days; older ones are lost. Test webhooks from the dashboard are always sent, even to a paused endpoint, and never pause or resume one. A re-sent event arrives as a new delivery of the same event, so make your handler safe to run twice: key it on what the event describes, such as credential.id with credential.status for a credential event, or requestId with eventType otherwise.