Runbook Hooks
The recommended way to integrate Hoop with external systems — SIEMs, alerting pipelines, audit platforms — is through runbook hooks. Hook scripts live in your runbooks git repository and execute automatically when session events occur, with the full event payload available as an environment variable.Runbook hooks require version 1.36.11+ and the Runbooks plugin configured with a git repository.
How It Works
Place hook scripts in ahoop-hooks/ directory in your runbooks repository. Hoop executes the matching script automatically when the corresponding event fires, injecting the event payload as HOOP_RUNBOOK_HOOK_PAYLOAD.
| File | Event | Description |
|---|---|---|
hoop-hooks/session-open.runbook.py | Session open | Fires when a session starts. May fire more than once if the connection has reviews enabled. |
hoop-hooks/session-close.runbook.py | Session close | Fires when a session ends. |
Enabling Hooks
SetGIT_HOOK_CONFIG_TTL in your runbooks plugin configuration. This activates hook support and controls how long (in seconds) the configuration is cached between git fetches. See the Runbooks configuration guide for full setup instructions.
Event Payload
TheHOOP_RUNBOOK_HOOK_PAYLOAD environment variable contains a JSON object with session context. The event_session_open or event_session_close attribute is populated depending on which event fired.
Forwarding Events to a SIEM
The example below shows a session-close hook that forwards the event payload to an external endpoint — a SIEM, a logging pipeline, or any HTTP receiver.Svix Integration

Prerequisites
- Finish integration with Svix
- Hoop CLI installed
- Admin access to your Hoop instance
- Enterprise Plan
Configuring
Log in and create thewebhooks plugin:
Dashboard
Open the Svix dashboard to configure endpoints and subscriptions:The dashboard is only available with Svix SaaS and can only be opened by administrators.

Adding Endpoints
Click Endpoints to route messages to your SIEM.Adding endpoints to a self-hosted Svix instance requires the Svix CLI or API.

Use Svix Play to test endpoints before wiring up production systems.

Event Types
Refer to the Event Catalog link in the dashboard for event definitions.
Consuming Webhooks
Refer to the Svix documentation for guidelines on secure verification and consumption of webhooks.Svix Self-Hosted
For self-hosted installations, manage Svix resources directly via the Svix CLI or the Hoop CLI wrappers.Event Types
| Event Name | Description |
|---|---|
dbroles.job.finished | Fires when a database user role is provisioned |
microsoftteams.review.create | Fires when a review is created |
session.open | Fires when a session or review is opened |
session.close | Fires when a session ends |
