Webhooks
Receive event session updates at your own HTTPS endpoint or Splunk HEC collector.
Webhooks push event session changes to you, so you don't need to poll GET /v1/events/sessions. Register a URL once, and Hive sends an HTTPS POST each time a session you can read is updated or ends. A webhook delivers either to an HTTPS endpoint you run (signed, see Verify signatures) or to your own Splunk HTTP Event Collector.
| Event | Sent when |
|---|---|
event_session.updated | A live session has new data, about once a minute per session. |
event_session.ended | A session has ended. Once per session. |
Register a webhook
Webhook endpoints use the same authentication and headers as the rest of the API.
curl -X POST "https://data-api.hivestreaming.com/ina/v1/webhooks" \
-H "Authorization: Bearer $IDA_BEARER_TOKEN" \
-H "platform-id: $IDA_PLATFORM_ID" \
-H "tenant-id: $IDA_TENANT_ID" \
-H "Content-Type: application/json" \
-d '{"url": "https://hooks.example.com/hive", "eventTypes": ["event_session.ended"]}'eventTypes is optional and defaults to all events. For https webhooks the response contains signingSecret (whsec_...). It is returned only once: store it to verify deliveries, or delete the webhook and create a new one if you lose it. For splunk_hec webhooks signingSecret is null, because your HEC token authenticates the requests.
A webhook receives the sessions GET /v1/events/sessions returns to you, for every integration in your account. Only changes made after you register are sent.
| Operation | Request |
|---|---|
| List | GET /v1/webhooks |
| Get one | GET /v1/webhooks/{webhookId} |
| Change URL or events | PUT /v1/webhooks/{webhookId} |
| Delete | DELETE /v1/webhooks/{webhookId} |
Secrets and tokens are never returned by GET and are stored encrypted. Deleting a webhook drops its pending deliveries. You can register up to 10 webhooks per platform and tenant. The API reference lists every field.
What a delivery looks like
POST /hive HTTP/1.1
Content-Type: application/json
User-Agent: HiveStreaming-Webhooks/1
webhook-id: 0b8e2f4c-6a1d-3c5e-8f7a-9b2c4d6e8f01
webhook-timestamp: 1794131970
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
{
"id": "0b8e2f4c-6a1d-3c5e-8f7a-9b2c4d6e8f01",
"type": "event_session.ended",
"timestamp": "2026-11-08T10:20:00Z",
"data": { "eventSessionId": "11111111-1111-1111-1111-111111111111", "hasEnded": true, "viewersCount": 1520, "...": "..." }
}data has the same shape as the event session response, and timestamp is its updatedAt.
Respond and retry
Respond with any 2xx status within 10 seconds and do slow work afterwards. Any other status, a timeout or a redirect is a failure: the delivery is retried every 5 minutes, up to 5 attempts in total, then dropped.
Delivery is at least once and not ordered. Use webhook-id to skip events you already processed, and compare data.updatedAt when order matters. For Splunk HEC, the same values are in the event's id and updatedAt fields.
A webhook stays active while deliveries fail: each new event still gets its own 5 attempts. Delete webhooks you no longer use.
The URL must use https and resolve to public IP addresses only. Redirects are not followed.
Verify signatures
Every HTTPS delivery is signed following Standard Webhooks, so you can use one of its libraries:
import { Webhook } from "standardwebhooks";
const wh = new Webhook(process.env.HIVE_WEBHOOK_SECRET); // "whsec_..."
app.post("/hive", express.raw({ type: "application/json" }), (req, res) => {
try {
wh.verify(req.body, req.headers); // throws on a bad signature or a timestamp older than 5 minutes
} catch {
return res.sendStatus(400);
}
res.sendStatus(204);
});Without a library: webhook-signature is v1, followed by the base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body}, keyed with the base64-decoded part of the secret after whsec_. Use the raw body as received, compare in constant time, and reject timestamps more than 5 minutes off.
Splunk HEC
To feed your own Splunk index, create an HEC token in Splunk (Settings -> Data inputs -> HTTP Event Collector, see Splunk's guide for Splunk Cloud or Splunk Enterprise) and register a webhook of type splunk_hec:
curl -X POST "https://data-api.hivestreaming.com/ina/v1/webhooks" \
-H "Authorization: Bearer $IDA_BEARER_TOKEN" \
-H "platform-id: $IDA_PLATFORM_ID" \
-H "tenant-id: $IDA_TENANT_ID" \
-H "Content-Type: application/json" \
-d '{
"type": "splunk_hec",
"url": "https://http-inputs-acme.splunkcloud.com/services/collector/event",
"splunkHecToken": "8f1c2d3e-4b5a-4978-8a9b-0c1d2e3f4a5b"
}'If you use the Hive Streaming App for Splunk, set the token's default index to hive, the index the app creates. Webhook events then sit next to the rows the app's alerts store, with the same field names.
Requirements for the collector:
- URL: for Splunk Cloud,
https://http-inputs-<stack>.splunkcloud.com/services/collector/event. For Splunk Enterprise, your HEC host with its port, for examplehttps://splunk.example.com:8088/services/collector/event. - Certificate: the collector must be reachable from the internet over HTTPS with a publicly trusted certificate.
- Token: create it without indexer acknowledgement. To change the token, delete the webhook and create a new one.
Each event is sent with Authorization: Splunk <token>:
{
"time": 1794131970.25,
"source": "hive:webhook",
"sourcetype": "hivestreaming:ina:event_session",
"event": { "id": "0b8e2f4c-...", "type": "event_session.ended", "eventSessionId": "...", "eventName": "Town hall", "viewersCount": 5120, "...": "..." }
}The event holds the event session fields directly, plus id and type. For example, live events above 5,000 viewers:
index=hive source=hive:webhook type="event_session.updated" viewersCount>5000
| dedup eventSessionId
| table eventName viewersCount reliabilityScore