Autosana webhooks
Autosana webhooks are HTTP POST requests that Autosana sends to your HTTPS endpoint when a batch of flow runs, its end-to-end tests, completes.
How Autosana webhooks work
Webhooks push test results to your CI pipeline, dashboard or chat when a batch finishes, so you don't have to poll Autosana's Run Status API every 10 to 15 seconds. There is one notification, batch.completed, and the setup steps have no event selection, so there's nothing to subscribe to beyond adding the webhook.
The JSON body's event field holds the name. summary counts run groups by result, and each entry in run_groups has its own status, a link to the results and its runs. app identifies the build, and git holds the commit and branch only when the build has git metadata. Autosana's docs show no version header or field.
Key facts
X-Autosana-Signature-256 Not every delivery is signed: check your setup.
{raw body} The request body as sent, with no timestamp or other prefix.
Setting up Autosana webhooks
- Go to Settings > Integrations > Webhooks, click Add Webhook and enter your HTTPS URL. Add a signing secret at the same step: it's optional, but a webhook without one isn't signed.
- Send a test delivery with the webhook's Test button. To test locally, forward deliveries with the Hookdeck CLI:
hookdeck listen 3000 autosana --path /webhooks/autosana. - If your endpoint sits behind a firewall, allowlist the
flow_runners.virtual_runners.web_browsersIPs fromGET /api/v1/network/allowlist. Real deliveries come from those IPs for every platform. The Test button sends from Autosana's API, which isn't on that list, so a blocked test doesn't mean real deliveries are blocked. - Autosana's docs describe no way to resend a delivery. For a batch you started with the API,
GET /api/v1/runs/statusreturns its result if you kept thebatch_id.
Delivery behaviour
Known failure modes
From Hookdeck's Autosana guide →-
A result can be lost during an outage
Autosana documents no retries, so don't count on a failed delivery being sent again. Give anything that waits on a result a deadline, then check the Run Status API or the run page.
Plan for a missing result → -
A webhook without a secret is unsigned
The signing secret is optional, and without one anyone who finds your URL can post a fake all-passed result. Set a secret and reject requests with no
Require a signature →X-Autosana-Signature-256header. -
Zero failed groups may not mean a clean batch
Autosana's webhook example counts only passed and failed groups, while its Run Status API also lists
Read the summary safely →errorandterminatedgroup statuses. Treat a batch as passed only whensummary.passed_groupsequalssummary.total_groups. -
A firewall starts blocking results
Autosana's runner IPs can change without notice. If results stop arriving at a firewalled endpoint, pull
Keep the allowlist current →GET /api/v1/network/allowlistand compare it with your rules.
Autosana webhook best practices
- Set a signing secret and require it. Signing is off until you set one. Once it's on, reject a request with no signature header, because anyone who finds your URL can post a fake all-passed result.
- Respond before doing any work. Autosana states no timeout or success code. Verify, store the result, return a 2xx, then update your pipeline or post to chat.
- Plan for a result that never arrives. Autosana documents no retries. If a CI gate depends on a result, give it a deadline and check the Run Status API or the run page when the deadline passes.
- Deduplicate on run group URLs.
The body has no delivery ID and
gitisn't always there. Eachrun_groups[].urlholds that group's own ID. - Pass a batch only when every group passed.
Compare
summary.passed_groupswithsummary.total_groupsrather than checkingfailed_groups, because Autosana doesn't say how a group that ended inerrororterminatedis counted. - Keep your allowlist current.
Autosana doesn't notify you when runner IPs change. Pull the allowlist endpoint on a schedule: it sends
Cache-Control: max-age=300, so daily polling is cheap.
Events
| Resource | Events | Payloads |
|---|---|---|
Autosana events | 1 | 1 |
In this hub
| Webhook events → | Every covered Autosana event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to Autosana events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill autosana-webhooks |
Keep an endpoint outage from losing an Autosana result.
Autosana documents no retries, so a result sent while your service is down may not come back. Hookdeck Event Gateway accepts each delivery straight away, verifies the signature, then queues it and retries to your service on your schedule.