Trigger scans with webhooks
Webhooks let you start a scan from a deployment pipeline or any automated service. Enable it from a domain's Settings page after verifying the domain, then copy the generated URL.
Creating scans
Send a GET, POST, PUT, PATCH, or DELETE request to the webhook with any library or tool to queue a scan. HEAD and OPTIONS requests do not trigger scans.
In a Bash script, use the webhook URL shown in your domain settings:
curl "https://api.secretbird.net/api/scan-webhook/........."
Expected responses
Status codes:
- 409: another scan is running
- 429: scan quota exhausted
- 202: scan queued
{ "ok": true, "scanId": "scan_...", "htmlUrl": "https://secretbird.net/dashboard/scans/scan_..." }
Anyone with access to the URL can trigger scans for the domain.