Webhooks & Events
How Safeguard tells your systems that something happened - scan results over the CI scan API and notifications in your team's chat tool.
Webhooks & Events
Safeguard reaches your systems in two ways. Pick the one that matches what you want to react to.
| You want | Use |
|---|---|
| The result of a scan in your pipeline | The CI scan API: start a scan, then poll its status and gates |
| Findings and alerts in a team channel | ChatOps integrations (Slack, Microsoft Teams, Discord) |
Scan results in a pipeline
The CI scan API returns the state of a scan, its vulnerability counts and the outcome of each gate. Poll GET /{scanId} and GET /{scanId}/gates, or let the CLI do it with safeguard ci scan --wait --fail-on-gate. See API Reference and CI/CD Integration.
Notifications in chat
Connect Slack, Microsoft Teams or Discord under Settings → Integrations and Safeguard posts findings and platform events to the default channel you pick. See ChatOps integrations.
Related
- API Reference
- Workflows for the automation Safeguard runs for you.
- SDKs: ask Safeguard AI from TypeScript, Python or Go
Container images
Scan the container image your pipeline builds, for each environment (dev, staging, production), and fail the build on vulnerabilities
Slack, Teams & Discord
Route findings and events into your team's Slack workspace, Microsoft Teams tenant, or Discord server - set up credentials, pick a default channel and message the Safeguard bot.