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.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.
eventType, each event adds its own fields. Pick the event you are handling:
Versioning
Webhook payloads are versioned independently from the API. Each organization has its own webhook version, which determines the format of the payloads you receive. You can manage your webhook version in the Humanos Dashboard. Every webhook payload includes anapi_version field so you always know which format it uses. Your webhook version is automatically set on the first delivery and stays pinned until you explicitly change it.
For more details on how versioning works across the API and webhooks, see API Versioning.
Configuration
To configure the webhook system, organization administrators can navigate to Humanos Admin – Webhooks. The following settings are available:- Webhook URL is the endpoint where all webhook events will be delivered, for example
https://your.domain.com/webhook. - 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 on 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.
- Receive the request → Your endpoint will be called with an encrypted payload.
- Verify authenticity → Check the x-signature header using your Webhook Signature Secret.
- Decrypt the payload → Use the Webhook Encryption Secret and Webhook Encryption Salt to decrypt the message and read the event data.
- Process the event → Store it in your system, update statuses, or trigger business logic.
- Respond quickly → Always return 200 OK after successful processing. Humanos retries failed deliveries automatically.