Create Alert
Changed onCreate 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
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/alerts
- Auth: HTTP bearer and API key in header X-Namespace
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
- warning
removed the optional property
from the response with the status - warning
added the new
ingest_stalledenum value to the//response property for the response status - info
added the new
ingest_stalledenum value to the request property// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- warning
added the new
budget_thresholdenum value to the//response property for the response status - warning
added the new
collection_staleenum value to the//response property for the response status - warning
added the new
retriever_no_interactionsenum value to the//response property for the response status - info
added the new
budget_thresholdenum value to the request property// - info
added the new
collection_staleenum value to the request property// - info
added the new
retriever_no_interactionsenum value to the request property//
- warning