Discussions

Ask a Question
Back to all

What eventTypes are created for each resource action, if any?

The Webhook feature is currently configurable with one of the following event types:

credential.created
credential.updated
credential.deleted
credential.issued
credential.viewed
credential.downloaded
credential.shared

Using the API resource https://api.certifier.io/v1/credential-interactions I posted a credential.viewed type to simulate a real resource action and the triggered event was then evident as follows:

{
"id": "01kaxvz42phx2yeb7xhzyv4csn",
"type": "credential.viewed",
"createdAt": "2025-11-25T16:01:25.032Z",
"data": {
"resource": {
"id": "01kaete37s1vsa7azk7t0g4et7",
"type": "credential"
},
"credential": {
"id": "01kaete37s1vsa7azk7t0g4et7",
"status": "issued",
"groupId": "01kaetcaet6hbc3n8p7a3tfame",
"publicId": "5d4a5c79-6808-426d-b231-00f94d2bb556",
"createdAt": "2025-11-19T19:46:02.107Z",
"issueDate": "2025-11-19",
"recipient": {
"id": "01kaete37pnxydm0vyvq8k4bxv",
"name": "*****",
"email": "*******"
},
"updatedAt": "2025-11-19T20:01:33.162Z",
"attributes": {
"recipient.name": "******"
},
"expiryDate": null,
"customAttributes": {}
},
"credentialInteraction": {
"id": "01kaxvz40wp4tkbpmqbc1v9fmn",
"eventType": "credential_viewed",
"triggeredAt": "2025-11-25T13:37:57.000Z",
"triggeredBy": "recipient",
"credentialId": "01kaete37s1vsa7azk7t0g4et7"
}
}
}

I was expecting that downloading the certificate preview (eg. https://cdn.certifier.io/c412da84-2d78-40c6-8e02-dcba249fc49f/credentials/01kaete37s1vsa7azk7t0g4et7/designs/01kaet79mnzbffbz1p5nhn5r65/g3TiWOTcXx.png) would create a credential.downloaded type of credential interaction and corresponding event, however it did not.

Hence my request for a mapping of actual resource actions, preferably identified by URL pattern, to the eventType.