Register a webhook
POST/v1/organizations/:org/webhooks
Events are POSTed as JSON ({id, type, created_at, organization_id, data}) to an https URL on a
public address; connections to private, loopback and link-local addresses are refused when
dialling, and redirects are not followed. Each request carries Webhook-Id (the event id, the
same on retries and redeliveries), Webhook-Delivery, Webhook-Event, Webhook-Timestamp, and
Webhook-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<body>" with the secret>. For a while after
the secret is rotated the header holds two signatures, space-separated (the new secret's first):
accept the request when any one matches. A non-2xx
response or a failure is retried with backoff, up to 8 attempts over about a day.
Event types: scan.finished (data.scan), findings.opened and findings.resolved (per scan:
total, up to 100 changes, truncated; the rest at GET /scans/{scan}/finding-changes), and
audit.event (each audit log entry), vulnerabilities.alerted (data.alerts: something new affects
software the organization runs), uptime.down and uptime.up (data.monitor, data.check, data.down_since;
up adds data.downtime_seconds), uptime.maintenance_started and uptime.maintenance_ended
(data.monitor, data.maintenance), firewall.attack (data.app, data.attacks, data.blocked, data.first: an
in-app firewall agent reported attacks), threat_model.review_needed (data.system, data.reasons, data.last_signed,
data.url: a signed threat model changed in a way that matters; once per change); issue.created, issue.reopened,
issue.resolved, issue.rejected, issue.assigned, issue.due_passed and issue.ticket_closed_unfixed
(data.issue, data.event: the Issue event; Webhook-Id is the same for the same Issue event; an organization's
first import of Issues is not sent); * for all. A webhook with include_sub_organizations also
receives the events of every organization below (organization_id says whose). At most 10 per organization. The
secret is returned only here and by rotate-secret. Needs owner or admin.
format slack or teams posts each event as a short message (title, a few lines, a link to the
console) to a Slack incoming webhook (https://hooks.slack.com/services/...) or a Microsoft Teams
workflow webhook ("Post to a channel when a webhook request is received"), without the signature
headers. Their URLs are secrets: responses show only the host and last four characters. The format
cannot be changed later.
format splunk or datadog feeds a SIEM: each event is sent inside the SIEM's envelope (Splunk
HTTP Event Collector: {time, source, sourcetype: "rivia:<type>", event} with Authorization: Splunk <token>; Datadog Logs: [\{ddsource, service, ddtags, message: <event>\}] with DD-API-KEY), to your HEC
URL (.../services/collector/event) or your site's logs intake (https://http-intake.logs.<site>/api/v2/logs).
token is required for them, never returned (secret_hint shows its end), and replaced by sending a new
one; they have no signing secret.
format sentinel sends to Microsoft Sentinel through Azure Monitor's Logs Ingestion API: url is
<logs ingestion endpoint>/dataCollectionRules/<DCR immutable id>/streams/<stream> (the DCR's own
endpoint or a data collection endpoint, in any Azure cloud; api-version=2023-01-01 is added), with
tenant_id, client_id and, as token, the client secret of an app registration that has the
Monitoring Metrics Publisher role on the DCR. Each event is one record:
[{TimeGenerated, EventId, EventType, OrganizationId, Message, Data}] (datetime, four strings and
dynamic): declare those columns in the stream.
format elastic creates one Elastic Common Schema document per event in an index or data stream:
url is the cluster's address and the index (https://<deployment>.es.<region>.elastic.cloud/rivia-events),
token an encoded API key (Authorization: ApiKey). Documents are created as
PUT <index>/_create/<event id> with @timestamp, message, event.* (kind, category, type, action:
the event type, dataset rivia.<group>), organization.id, and the event's data under
rivia.<event type, dots as underscores>.
format sumologic posts each event, as one line of JSON, to a Sumo Logic HTTP Source address
(https://endpoint<n>.collection.<region>.sumologic.com/receiver/v1/http/...): no token, and like
Slack's the address is a secret, shown only by its end. format chronicle posts it to a Google SecOps
webhook feed's endpoint (https://<region>-chronicle.googleapis.com/.../feeds/<id>:importPushLogs),
with the API key as token and the feed's secret key as secret_key.
Request
Responses
- 201
- 400
- 403
- 404
- 422
The webhook with its secret
The request is invalid
Your role does not allow this action
Not found, or not visible to you
Not possible in the current state