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.

1 event covered

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

Signature header
X-Autosana-Signature-256

Not every delivery is signed: check your setup.

Scheme
HMAC-SHA256, hex
Signed material
{raw body}

The request body as sent, with no timestamp or other prefix.

How events are identified
event field in the body
Body format
JSON
Envelope
event, timestamp, app, git, summary, run_groups
Agent skill
npx skills add hookdeck/webhook-skills --skill autosana-webhooks

Verify Autosana webhooks →

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_browsers IPs from GET /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/status returns its result if you kept the batch_id.

Delivery behaviour

  1. 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 →
  2. 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 X-Autosana-Signature-256 header.

    Require a signature →
  3. 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 error and terminated group statuses. Treat a batch as passed only when summary.passed_groups equals summary.total_groups.

    Read the summary safely →
  4. A firewall starts blocking results

    Autosana's runner IPs can change without notice. If results stop arriving at a firewalled endpoint, pull GET /api/v1/network/allowlist and compare it with your rules.

    Keep the allowlist current →

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 git isn't always there. Each run_groups[].url holds that group's own ID.
  • Pass a batch only when every group passed. Compare summary.passed_groups with summary.total_groups rather than checking failed_groups, because Autosana doesn't say how a group that ended in error or terminated is 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

batch.completed

1 1

All 1 event →

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.

Not affiliated with Autosana. Facts are compiled from public sources and linked inline.