Webhooks
alert.triggered
A mentions spike or a negative sentiment spike, with one plain line to show in chat.
When it is sent
A listener's or project's alert rule found a spike, once per rule, day and window, within 5 minutes of the check that found it.
Payload
A test send delivers this body. A real event has no test key and carries a cursor.
{
"id": "bat_sample0000000000000",
"type": "event.batch",
"data": {
"events": [
{
"id": "evt_testsample0000000000000",
"type": "alert.triggered",
"test": true,
"api_version": "2026-10-01",
"created_at": "2026-10-24T10:15:01Z",
"cursor": null,
"subject": {
"kind": "listening_stream",
"id": "lst_sample0000000000",
"name": "Client B: Globex Mobile",
"metadata": {
"client": "client-b"
}
},
"data": {
"rule": "mentions_spike",
"sensitivity": "balanced",
"window": "day",
"date": "2026-12-02",
"time_zone": "Asia/Seoul",
"count": 84,
"usual": 21,
"text": "Mentions spike on Brand mentions: 84 posts on 02/12/2026, 4 times the usual day of 21.",
"url": "https://socialcrawl.dev/dashboard/monitors/listener/lst_sample0000000000?days=30&date=2026-12-02"
},
"links": {
"stream": "https://www.socialcrawl.dev/v1/listening/streams/lst_sample0000000000"
}
}
]
}
}Fields
These are the keys of data on the event. The event also carries id, type, api_version, created_at, cursor, subject and links.
| Key | Type | Meaning |
|---|---|---|
rule | string | mentions_spike, negative_spike, or news (a project's news and risk rule). A negative spike counts posts only, never comments. |
sensitivity | string | The rule's sensitivity when it fired: fewer, balanced or more. |
window | string | day when a complete day was judged, hours when the last 3 complete hours were (the sudden check), items for news stories. |
date | string | The day of the spike, YYYY-MM-DD in time_zone. One event per rule, day and window, and at most one escalation of each. |
time_zone | string | The IANA time zone the day is counted in, chosen with the rule. |
count | number | Posts (a mentions spike) or negative posts (a negative spike) that day, or in the 3 hours of a sudden spike; for news, the stories in the message. |
usual | number | The usual figure of the same count. For a day, the median of the other full days the listener has heard, up to 30. For 3 hours, the median of the same 3 hours on the last 7 days. |
text | string | One plain line that says what spiked, ready to show in a chat app. |
url | string | The dashboard page of the listener or project at 30 days, on the spike's day. |
share | number | A negative spike's share of negative posts among labelled posts that day, from 0 to 1. |
usual_share | number | The usual negative share before that day, from 0 to 1. Sent with share when it is known. |
from | string | The first hour of a sudden spike's 3 hours, ISO 8601. Sent with window hours. |
to | string | The end of a sudden spike's 3 hours (exclusive), ISO 8601. Sent with window hours. |
escalated | boolean | True on the one follow-up of a day or of its 3 hours, sent when the count reaches twice the count first told in the same window. |
Delivery
Every delivery is signed, so verify the signature before you trust it. You can send this body to your endpoint with a test send, read the same event on the events feed, and see retries on webhooks and events.
