Create a Webhook
This guide will demonstrate how to create a Webhook.
Prerequisites
Access to MATTR VII APIs. If you’re experiencing any difficulties, contact us.
A MATTR VII API workflow set that utilises a supported Webhook event type:
Request
Make a request of the following structure to create a Webhook:
1POST https://YOUR_TENANT_URL/v1/webhooks
1{
2 "events": [
3 "{{event_type}}"
4 ],
5 "url": "https://example.com"
6}
events
: This array includes the event types that will trigger this Webhook. Currently allowed types:OpenIdCredentialIssued
: Triggered upon completion of an OpenID4VCI issuance flow.OidcIssuerCredentialIssued
: Triggered upon completion of an OICD Bridge issuance flow.
url
: This is the URL that will receive the Webhook events data payload when they are triggered by MATTR VII for the specifiedevents:
Must be a valid URL.
Must use the HTTPS protocol.
Must not be an IP address.
Must not include query parameters or has fragments.
Non-ASCII characters are normalised.
Must return a 2xx response, otherwise it will go through a retry cycle and eventually fail.
Response
1{
2 "id": "0c099611-19c4-4f29-8724-6b9e5ba1ef7c",
3 "events": [
4 "{{event_type}}"
5 ],
6 "url": "https://example.com",
7 "disabled": false
8}
id
: Unique identifier for the created Webhook. You will need it to verify the Webhook.events
: As defined in the request above.url
: As defined in the request above.disabled
: Set tofalse
by default, indicating the Webhook is active. When a webhook is disabled, notifications for the events associated with this webhook will not be sent.If you need to create a Webhook in an initial disabled state, you can override the default by including
"disabled": true
in therequest
body.You can also disable the Webhook by making an update request.