Skip to main content

Cloud Wallet webhooks

A Cloud Wallet webhook is a URL in your system that Hovi calls when something happens in one of your users' cloud wallets, for example when a credential offer or a verification request arrives. Webhooks belong to a single wallet, so you register them with that wallet's access token, not with your API key.

Cloud Wallet webhooks send events for cheqd and Indicio wallets (DIDComm).

Before you start​

Make sure you have:

  1. A cloud wallet and its wallet access token.
  2. An HTTPS URL in your system that can receive POST requests.

Steps​

  1. Open the Hovi Cloud Wallet API Reference.

  2. Go to the Webhook section.

  3. Open POST - Register Webhook.

  4. Click Test Request and fill in:

    • The wallet access token as a Bearer Token.
    • Your webhookUrl in the request body, for example https://your-app.com/webhook.

  5. Click Send. The response includes a webhookId and a webhookSecret.

note

The webhookSecret is shown only once: when you register the webhook and when you rotate its secret. Store it safely. You need it to verify webhook signatures.

Manage your webhooks​

EndpointWhat it does
POST - Register WebhookRegisters a webhook URL for the wallet and returns its webhookId and webhookSecret.
GET - Get WebhooksLists the wallet's webhooks. The secret isn't included.
DELETE - Delete WebhookDeletes a webhook by its webhookId.
POST - Rotate Webhook SecretCreates a new secret for a webhook and returns it.

All of these use the wallet access token.

Verify webhook signatures​

Cloud Wallet webhooks are signed the same way as Hovi Connect API webhooks, with the x-webhook-timestamp and x-webhook-signature headers. See Verify webhook signatures for how to check them, with a Node.js example.

Events​

The request body has a type and a payload. Event types include:

typeWhat it's about
did-exchangeA connection
credential-exchangeA credential offer
proof-exchangeA verification request

The payloads are described in the Webhook Events section of the Cloud Wallet API reference.

What happens next​

Use the IDs in each event, such as credentialExchangeId or proofExchangeId, to accept the credential or answer the verification request.