Skip to main content
Configuring risk alert rules and reading the delivery log require the Business plan or higher. Listing existing rules is available to all plans.
Risk alert rules are evaluated after every attestation, once the device’s risk score is computed. When a score crosses a rule’s threshold, Grantiva POSTs an alert payload to the rule’s webhook URL. Alerts never block or slow down the attestation path — delivery happens in the background. Delivery behavior
  • Cooldown: the same device will not re-trigger the same rule within 1 hour.
  • Retries: up to 3 attempts per alert, with 1 min / 5 min / 30 min backoff.
  • Signing: every request carries an X-Grantiva-Signature header — an HMAC-SHA256 of the raw body, signed with the rule’s secret (generated at rule creation).

Authentication

All endpoints require a dashboard session (cookie-based) with organization context. Creating, updating, and deleting rules additionally requires Admin role or above.

Alert payload

When a rule fires, your webhook URL receives:
Headers on the outgoing request:

List rules

Returns all alert rules for the organization, newest first. Response

Create a rule

Requires Admin role and Business plan or higher. Request body
Response201 Created Returns the rule object (same shape as the list response). New rules are active immediately.

Update a rule

Requires Admin role and Business plan or higher. All fields are optional; only provided fields change. Request body
Response200 OK Returns the updated rule object. Errors

Delete a rule

Requires Admin role and Business plan or higher. Response204 No Content

List alert deliveries

Requires Business plan or higher (any member role). Returns the 200 most recent alert deliveries across all of the organization’s rules, newest first. Response

See also