Proven Webhook Documentation

Proven Webhook Documentation

Overview

Webhooks provide real-time notifications about events on Proven agents. They are delivered as HTTP POST requests to a configured endpoint.

Webhook Structure

Headers:

Header

Example Value

Description

Content-Type

application/json

Request content type

X-API-Key

24680AEIOUY

Authentication key

User-Agent

node-fetch/1.0

Client identifier

Content-Length

1584

Request body size in bytes

Accept-Encoding

gzip,deflate

Supported compression methods

Payload Format:

{
  "event": "event_type",
  "webhook": {
// Event-specific data
  }
}

Webhook Events

Description: This is triggered when a connection is fully established.

Event Type: connection:completed

Payload Example:

AnonCred/JSON-LD Credential Issued

Description: This is triggered when a credential is successfully issued.

Event Type: credentials:done

Payload Example:

AnonCred/JSON-LD Presentation Verified

Description: This is triggered when a presentation is successfully verified.

Event Type: presentation:verified

Payload Example:

OID4VC Issued

Description: This is triggered when a credential is successfully issued.

Event Type: oid4vc-credential:issued

Payload Example:

OID4VCP Verified

Description: This is triggered when a presentation is successfully verified.

Event Type: presentation:verified

Payload Example:

Basic Message Received

Description: This is triggered when a presentation is successfully verified.

Event Type: webhook:basic-message

Payload Example:

Authentication

  • Header: x-api-key (optional)

  • Example: x-api-key: 24680AEIOUY

Security Considerations

  • Use the x-api-key header (recommended).

  • Use HTTPS for all endpoints.

  • Verify request signatures if available.

  • Validate JSON schema of incoming payloads.

Last updated

Was this helpful?