Create Alert
Create a new alert that monitors document ingestion and sends notifications.
Alerts attach retrievers to collections. When new documents are ingested,
the alert runs the retriever and sends notifications if matches are found.
**Key Components:**
- `retriever_id`: References a retriever that defines query logic (filters, scoring, limits)
- `notification_config`: Defines where to send notifications (webhook, Slack, email)
**Note:** The retriever owns all query semantics. The alert's job is simply
to run the retriever and notify if results exist.
Request body
Example request
{
"description": "Alerts when new videos match known safety incidents",
"enabled": true,
"name": "Safety Incident Detector",
"notification_config": {
"channels": [
{
"channel_id": "wh_safety_team",
"channel_type": "webhook"
}
],
"include_matches": true,
"include_scores": true
},
"retriever_id": "ret_safety_search"
}Response
Successful Response
Example response
{
"alert_id": "alt_safety_001",
"description": "Alerts when new videos match known safety incidents",
"enabled": true,
"name": "Safety Incident Detector",
"notification_config": {
"channels": [
{
"channel_id": "wh_safety_team",
"channel_type": "webhook"
}
],
"include_matches": true,
"include_scores": true
},
"retriever_id": "ret_safety_search"
}Changes
Changed in 2 of the 28 revisions of this API.34
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
dlq_growthenum value to thesystem_condition/anyOf[subschema #1: SystemCondition]/typeresponse property for the response status200response-property-enum-value-added
- ●
added the new
provider_quota_exhaustedenum value to thesystem_condition/anyOf[subschema #1: SystemCondition]/typeresponse property for the response status200response-property-enum-value-added
- ●
added the new
task_queue_degradedenum value to thesystem_condition/anyOf[subschema #1: SystemCondition]/typeresponse property for the response status200response-property-enum-value-added
- ○
added the new
dlq_growthenum value to the request propertysystem_condition/anyOf[subschema #1: SystemCondition]/typerequest-property-enum-value-added
- ○
added the new
provider_quota_exhaustedenum value to the request propertysystem_condition/anyOf[subschema #1: SystemCondition]/typerequest-property-enum-value-added
- ○
added the new
task_queue_degradedenum value to the request propertysystem_condition/anyOf[subschema #1: SystemCondition]/typerequest-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●