Skip to main content
Configure a webhook URL on a dataset to have AgentX POST the gate result to your server immediately after a hosted CI/CD run is finalized. (The self-host gate returns its verdict synchronously instead - gate history is queryable, no webhook involved.)

Configuration

Set webhookUrl on the dataset in Manage → Datasets → [dataset] → CI/CD, or include it when creating a dataset via the API:

Delivery

  • Sent as a single POST request with Content-Type: application/json
  • Fire-and-forget: AgentX does not retry on failure or timeout
  • Delivery is best-effort; build idempotency into your handler using run_id
When the dataset’s ci.failFast trips, the run is marked failed at submit time and finalize is never reached - so no webhook fires at all for fail-fast runs. A listener that blocks waiting on ci_run.finalized will hang; treat the missing webhook as a possible fail-fast failure and poll the run via the API if you need a definitive verdict.

Payload

Fields

scores[n] fields

Example receiver

Verifying delivery

AgentX does not sign webhook payloads currently, so treat the webhook as a notification only - anything decision-worthy (gating a deploy, paging someone) should be verified by using the run_id to fetch the authoritative result back from the API: