Skip to main content
Webhooks notify your systems when a prompt or evaluator changes or when an evaluation task run fails. Arize AX sends the event to your endpoint as it happens, so you can react right away, for example by redeploying when a prompt version is labeled or alerting when a task starts failing, and your systems do not need to poll for changes.

Events

A webhook defines the destination URL and authentication. A subscription connects one webhook to one event on one source. ONLINE_TASK_RUN_FAILED fires when a task run fails, including when a run writes some evaluations and then stops on an error. It is sent once when a task starts failing and again each time the cause changes.

Create a webhook

  1. Go to Settings → Org Settings → Webhooks and click Add Webhook.
  2. Enter a Name and the URL that receives events. The name must be unique within the organization, and a description is optional.
  3. Enter an Authorization Token if your endpoint expects a bearer token or secret, and add custom headers if it needs them.
  4. Click Add Webhook.
Add Webhook panel with Name, Description, URL, and Authorization Token fields and an Add Custom Headers button

The Add Webhook panel, with the name, URL, and optional authorization token.

The REST API can also create a webhook:
Arize AX does not send events to private, loopback, or link-local addresses, and it does not follow redirects, so the URL must be the exact public address that receives events.

Authenticate deliveries

  • BEARER: Arize AX sends the saved token verbatim in the Authorization header. The token must include the scheme your endpoint expects, such as Bearer.
  • HMAC_SHA256: Each delivery includes these headers.
The signature is HMAC-SHA256 over <timestamp>.<raw request body>. The key is the full signing secret, including its whsec_ prefix.

Subscribe to events

Subscriptions are created with the REST API:
The webhook and the source must belong to the same organization, and each event works only with its matching source type. Prompt events use PROMPT sources, evaluator events use EVALUATOR sources, and task run events use ONLINE_TASK and SPACE sources.

Payload and retries

Each delivery is an HTTP POST whose body includes event, event_uuid, timestamp (RFC 3339, UTC), space_id, and a data object with event-specific fields. Arize AX attempts a delivery up to 6 times in total, with retries about 1, 4, 16, 64, and 256 minutes after the previous attempt. Connection failures and HTTP 408, 429, and 5xx responses are retried. Other 4xx responses are not.

Limits

  • Webhook names must be unique within an organization.
  • The delivery timeout is between 1 and 60 seconds. The default is 30 seconds.

Test a webhook

You can send a test event from the webhook’s page or with POST /v2/webhooks/{webhook_id}/test.