Webhooks
Webhooks provide real-time HTTP push notifications when scan events occur, eliminating the need for polling. When a scan completes, fails, or triggers other events, the Cert-IX platform sends an HTTP POST request to your registered URL with the event payload.
Why Use Webhooks?
- Instant notifications: No polling delay
- Reduced API calls: No quota consumed for status checks
- Event-driven architecture: Automatically trigger CI/CD gates, notifications, ticket creation
- Reliable delivery: Automatic retries with exponential backoff
Register a Webhook
Endpoint
POST /api/v1/webhooks
Required scope: webhooks:create
Request
curl -X POST https://api.cert-ix.com/scan-api/api/v1/webhooks \
-H "X-API-Key: $CERTIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "CI/CD Scan Notifications",
"url": "https://your-server.example.com/webhooks/certix",
"events": ["scan.completed", "scan.failed"]
}'
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Human-readable webhook name (max 255 chars) |
url | string | Yes | HTTPS endpoint to receive events (max 2048 chars) |
events | string[] | No | Event types to subscribe to (default: scan.completed, scan.failed) |
Response (201 Created)
{
"success": true,
"data": {
"id": "wh-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "CI/CD Scan Notifications",
"url": "https://your-server.example.com/webhooks/certix",
"secret": "whsec_a8b2f1d92ffb23344a943df2b6a001fb1028d002e3f4a5b6c7d8",
"events": ["scan.completed", "scan.failed"],
"isActive": true,
"isHealthy": true,
"createdAt": "2026-03-06T10:00:00Z"
}
}
Store the Secret
The secret field is returned only at creation. Store it securely: you'll need it to verify webhook signatures.
Webhook Events
| Event | Trigger | Description |
|---|---|---|
scan.completed | Scan finishes successfully | Results are ready to retrieve |
scan.failed | Scan encounters a fatal error | Error details included in payload |
scan.started | Scan begins execution | Transition from queued to running |
scan.cancelled | Scan is cancelled | Partial results may be available |
If events is omitted, the webhook defaults to ["scan.completed", "scan.failed"].