DICE Developer Docs
  • Developer Docs
    • DICE Test Drive
      • Sign-up for Issuer Portal
      • Issue Credentials
      • Verify Credentials
    • Key Concepts
      • DID & Verifiable Credentials
      • DICE ID Architecture
    • Platform Console
      • Dashboard
      • Customers
        • Onboard Customer
      • Credentials
        • Issue Credentials to New Customer
      • Schema
      • Batch Issuance
        • Batch Issuance - Useful Tips
      • Verifications
        • Verification Template
      • Templates
        • Certificate Template
          • Create Template
          • Manage Template
        • Email Template
          • Create Template
          • Manage Template
      • Organization
      • Departments
      • Organization Users
      • API Access
      • Callback Configuration
      • Tutorials
        • Credential Issuance from DICE ID Console
        • Credential Issuance using DICE ID APIs
        • Credential Verification using QR code
        • Credential Verification from DICE ID console
        • Batch Credential Issuance from DICE ID Console
    • Integrations
      • Auth0 Integration
        • Login using OIDC (First Factor Authentication)
        • Custom MFA Rule (For 2FA)
    • DICE ID SDK
      • DICE ID
        • DID & Verifiable Credentials
        • DICE ID Architecture
      • SDK Functionalities
      • Create Wallet
      • Create Connection
      • Creating a Schema
      • Issue a Credential
      • Send Presentation Request
      • Get Verification State
      • Configuration and Customization
      • Error Handling & Troubleshooting
      • Conclusion
      • Additional Resources
  • Getting Started with DICE ID Skill Credentials
    • Building Trust Ecosystems Powered by Credentials
    • DICE ID Integration for Issuers
    • DICE ID Integration for Verifiers
    • DICE ID Brand Usage Guidelines
    • DICE ID Onboarding Confirmation
    • Helpful Q&A
    • Troubleshooting Guide
Powered by GitBook
On this page
  1. Developer Docs
  2. Platform Console

Callback Configuration

Steps to setup callback API configuration to get real-time updates from DICE ID APIs

PreviousAPI AccessNextTutorials

Last updated 1 year ago

DICE ID APIs for credential issuance and verification that includes user / customer onboarding are all asynchronous APIs which involves various state changes. Therefore DICE ID platform provides ability to register your APIs on which you can receive the callback based on events.

From this screen you can specify the REST API url and the access parameters. Please make sure to use the same callback APIs in the request body when calling DICE ID APIs.

Once you configure the callback/webhook, then DICE ID platform will start sending/invoking the API at events during the course of connection establishment, credential issuance, credential verification and Schema creation. The callback API will be invoked when:

  • User Connection establishment is completed, and Connection becomes ‘active’.

  • Credential Offer has been sent to the User.

  • Credential is issued to the User.

  • Credential is revoked from User.

  • Presentation/Verification request is sent to the User.

  • Presentation/Verification proof is verified.

  • New Credential Schema gets created.

The payload that will be sent to your callback API will comrpise of the following fields

{
    "type": "string", // possible values are: "connections", "credentials", "verifications" or "schema"
	"action": "string", // possible values are:
    // 	If the 'type' is "connections" then "response", or "active"
    // 	If the 'type' is "credentials" then "offer_sent", "credential_acked" or "credential_revoked"
    // 	If the 'type' is "verifications" then "request_sent" or "verified"
    // 	If the 'type' is "schema" then "create schema"
    "name": "string", // User Name
    "email": "string", // User email
    "connection_id": "string", // 	Unique ID of the connection establishment operation. If the 'type' is "connections" then this field gets populated 
	"credential_exchange_id": "string", // 	Unique ID of the credential issuance operation. If the 'type' is "credentials" then this field gets populated 
	"presentation_exchange_id": "string", // 	Unique ID of the credential verification operation. If the 'type' is "verifications" then this field gets populated
	"schema_id": "string" // 	Unique ID of the Schema creation operation. If the 'type' is "schema" then this field gets populated 
}

In case, you don’t need these callbacks/webhooks any more from DICE then you can delete the callback setup through DICE ID web portal from same ‘Callback Configuration’ page