Webhook
Creating verifiable credentials involves several steps and can take a while to complete. You have two options to check the status of the creation process:
- Periodically poll the retrieval endpoint or the status API until the process is complete.
- Use the webhook feature to receive an update once the credential has been created.
Setting Up a Webhook
First you need to setup a webhook in the developer console.
The events you need to monitor are:
-
credential:creation.succeeded
Will be emitted when the credential creation process is complete. Will contain the issued credential in thedata.credential
field. In case of encrypted credentials template, the credential will be encrypted. -
credential:creation.failed
Will be emitted when the credential creation process fails. Will contain the error in thedata.error
field.
NOTE: In case of delegated storage the webhook will be the only way to retrieve the credential, after sending the webhook all the data will be deleted from our system/