Configuring Webhooks
A webhook sends a message to another system when an event occurs in CVD Portal. Webhooks need the Enterprise plan.
Add a webhook in the dashboard
- Go to Settings → Integrations.
- Select the type: Slack, Microsoft Teams, Discord or Generic (any HTTPS URL).
- Enter the URL. For Slack, Teams and Discord, the URL must use the host of that service.
- Select one event.
- Optional: for a Generic webhook, enter a secret.
- Save, then click Test to send a test message.
Each webhook sends one event. To send more events to the same URL, add one webhook for each event.
Because the webhook URL contains the token that posts to your channel, only admins see the full URL and other roles see the host only, for example https://hooks.slack.com/••••.
Events you can select in the dashboard
| Event | When it occurs |
|---|---|
submission.created | A new report arrives through the public portal, the bulk submission API, POST /api/v1/vulnerabilities or the MCP tool submit_vulnerability. A report that a team member creates in the dashboard sends no event. |
sla.breached | A report passed its resolution SLA. Resolution SLAs need the Enterprise plan. |
sla.deadline_approaching | A recurring security review is near its due date or overdue. The dashboard label is "Security review due". |
art14.deadline_approaching | An Article 14 deadline is near |
art14.deadline_breached | An Article 14 deadline has passed |
threat_intel.match | A new vulnerability matches a component in your SBOM |
sbom.ingested | An SBOM arrives through the API |
exploitation.detected | Public sources show exploitation of a CVE in one of your advisories |
advisory.published | You publish an advisory |
product.classified | A product classification changes |
submission.triage_failed | AI triage fails for a report |
partner.drillin_started | A partner opens your workspace. The access field is read-only for Look and write for Work in |
Register a webhook with the API
POST /api/v1/webhooks/register creates a Generic webhook. The API key needs the webhooks:write scope. The body has url (HTTPS), event (default submission.created) and an optional secret of 32 or more characters.
The approval.requested event (an AI agent asks for approval of an action) can only be selected through this API.
Payload and signature
A Generic webhook receives a JSON body with four fields.
| Field | Content |
|---|---|
id | The id of this delivery. It is the same each time CVD Portal sends the event to this webhook. |
event | The event name |
timestamp | The time of the event, in ISO 8601. A retry does not change it. |
data | The event data |
The X-CVD-Delivery header has the same value as id.
When the webhook has a secret, CVD Portal signs the body with HMAC SHA-256 and sends the signature in the X-CVD-Signature and X-CVD-Signature-256 headers. The X-CVD-Timestamp header is the time of the send, so it changes on a retry.
Slack, Teams and Discord webhooks receive a message in the format of that service.
A threat_intel.match payload for a finding in an older release that is still in the field also has a release object with id, version, productId and productName. A finding in the current SBOM has no release field.
Delivery and retries
CVD Portal stores each event before it sends it, so a restart of CVD Portal does not lose an event.
Your endpoint accepts an event with a 2xx answer within 15 seconds. CVD Portal does not follow a redirect.
When the first send fails, CVD Portal sends the event again 2 minutes, 15 minutes, 1 hour, 6 hours and 24 hours after the event. After the last retry, the delivery fails and the event is not sent again.
| Answer of your endpoint | What CVD Portal does |
|---|---|
| 2xx | The event is delivered |
| 5xx, 408, 429, a timeout or a network error | Retry |
| Any other 4xx | No retry. The delivery fails at once. |
A retry needs an active webhook. If you delete or disable the webhook, the retries stop.
An event can arrive twice
Your endpoint can get the same event more than once, for example when your 2xx answer does not reach CVD Portal. Store the id of each event that you process, and ignore an event whose id you already have.
Slack, Teams and Discord have no such check. A message can show twice in the channel.
Retention
CVD Portal stores the event data encrypted until your endpoint accepts the event, and deletes it at that moment. For a delivery that fails, the event data stays for 7 days, and the record of the delivery stays for 30 days.
Limits
CVD Portal does not show a delivery history or delivery success rates for webhooks.