Skip to main content
POST

Authorizations

Authorization
string
header
required

Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format

Body

application/json

Body containing the webhook, the source to attach it to, and the event to deliver

webhook_id
string
required

The unique identifier of the webhook to deliver the event to. Must belong to the source's organization.

Example:

"RW50aXR5OjEyMzQ1"

source_type
enum<string>
required

The kind of resource to attach the webhook to

Available options:
PROMPT,
EVALUATOR,
ONLINE_TASK,
SPACE
source_id
string
required

The unique identifier of the prompt, evaluator, evaluation task, or space to attach the webhook to

Example:

"RW50aXR5OjEyMzQ1"

event
enum<string>
required

The event to deliver. Must belong to the source type.

Available options:
PROMPT_VERSION_CREATED,
PROMPT_VERSION_LABELED,
PROMPT_VERSION_UNLABELED,
EVALUATOR_VERSION_CREATED,
ONLINE_TASK_RUN_FAILED

Response

The created webhook subscription

A subscription delivers one event from one prompt, evaluator, task or space to one webhook. A webhook that should receive several events from the same resource has one subscription per event.

id
string
required

Unique identifier for the subscription

Example:

"RW50aXR5OjEyMzQ1"

webhook_id
string
required

The unique identifier of the webhook that receives the event

Example:

"RW50aXR5OjEyMzQ1"

source_type
enum<string>
required

The kind of resource the subscription is attached to

Available options:
PROMPT,
EVALUATOR,
ONLINE_TASK,
SPACE
source_id
string
required

The unique identifier of the prompt, evaluator, evaluation task, or space the subscription is attached to

Example:

"RW50aXR5OjEyMzQ1"

event
enum<string>
required

The event delivered to the webhook

Available options:
PROMPT_VERSION_CREATED,
PROMPT_VERSION_LABELED,
PROMPT_VERSION_UNLABELED,
EVALUATOR_VERSION_CREATED,
ONLINE_TASK_RUN_FAILED
created_at
string<date-time>
required

Timestamp for when the subscription was created