Skip to main content
Creating, updating, and deleting rules and reading the delivery log require the Business plan or higher. Listing existing rules is available on 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 X-Grantiva-Signaturesha256= followed by the hex HMAC-SHA256 of the raw body, computed with a signing secret generated for the rule. The scheme matches webhook endpoints.

Authentication

These endpoints accept either a dashboard session cookie or a server API key sent as Authorization: Bearer <key>.

Alert payload

When a rule fires, your webhook URL receives:
Headers on the outgoing request:
On an automatic retry, bundleId and teamId are sent as empty strings — the retry rebuilds the payload from the stored delivery record, which keeps only the device and score. Key your handling on deviceId.

List rules

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

Create a rule

Request body
Response201 Created Returns the rule object (same shape as the list response). New rules are active immediately. Errors

Update a rule

All fields are optional; only provided fields change. Request body
Response200 OK Returns the updated rule object. Errors

Delete a rule

Response204 No Content

List alert deliveries

Returns the 200 most recent alert deliveries across all of the organization’s rules, newest first. Response

See also