Menu

Docs / API

Webhooks

Get a signed HTTPS request when something happens in Arctic GRC, and verify it.

Webhooks tell your systems when something happens in Arctic GRC: a test fails, a policy is published, a task becomes overdue. Arctic GRC sends an HTTPS POST to your address within about a minute.

Add an endpoint

In Settings › Developer › Webhooks, choose Add endpoint. Give an https address and choose the events, or all of them. A company can have up to 10 endpoints. The signing secret is shown once; it starts with whsec_.

Use Send a test event to check your receiver. A test is marked "test": true.

What is sent

The body is thin on purpose. It never holds a title, a name, an email address or anything a person typed. Read the record over the API with a token, whose scopes decide what you see.

{
  "id": "…",
  "type": "v1.test.failed",
  "createdAt": "2026-12-01T09:30:00.000Z",
  "company": { "id": "…" },
  "actor": { "kind": "system" },
  "target": {
    "kind": "test",
    "id": "…",
    "url": "https://<your Arctic GRC address>/workspace/tests/…",
    "apiUrl": "https://<your Arctic GRC address>/api/v1/tests/…"
  },
  "data": {}
}

actor.kind is one of person, provider, auditor, system, routine or api. It never says who.

Headers and signature

Each request carries:

  • webhook-id: the event's id, the same on every retry. Use it to drop duplicates.
  • webhook-timestamp: this attempt's time, in seconds.
  • webhook-signature: v1, followed by the base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body}. The key is the secret's bytes after whsec_, decoded from base64.
  • user-agent: ArcticGRC-Webhooks/1.

These are the Standard Webhooks headers, so its libraries verify them as they are. When you choose New secret, the old secret keeps signing for 24 hours. During that time the header carries two signatures separated by a space, and either one is valid.

import crypto from "node:crypto";

export function verify(secret, headers, rawBody) {
  const id = headers["webhook-id"];
  const ts = Number(headers["webhook-timestamp"]);
  if (!Number.isInteger(ts) || Math.abs(Date.now() / 1000 - ts) > 300) return false;
  const key = Buffer.from(secret.slice("whsec_".length), "base64");
  const expected = "v1," + crypto.createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest("base64");
  return headers["webhook-signature"].split(" ").some((s) => s.length === expected.length && crypto.timingSafeEqual(Buffer.from(s), Buffer.from(expected)));
}

Verify against the raw bytes of the body, before any JSON parsing.

Answer and retries

Answer with any 2xx within 15 seconds. A redirect, a timeout or any other status counts as a failure.

A failed delivery is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and then once a day: 11 attempts over about 5 days. An endpoint that has failed for 5 days with no success is stopped, and the stop is recorded in the activity log. Choose Resume on the endpoint once your receiver works. Its log in Settings shows every attempt for 30 days, and Send again retries one by hand.

Events

AreaEvents
Approvalsv1.approval.requested, v1.approval.decided, v1.approval.overdue
Ownersv1.control.owner_assigned, v1.policy.owner_assigned, v1.risk.owner_assigned, v1.test.owner_set, v1.vendor.owner_assigned, v1.asset.owner_assigned
Policiesv1.policy.published, v1.policy.review_due_soon, v1.policy.review_overdue
Documentsv1.document.renewal_due_soon, v1.document.expired, v1.document.missing
Tests and integrationsv1.test.failed, v1.test.recovered, v1.integration.needs_attention
Trust pagev1.trust.access_requested
Peoplev1.person.offboarding_started, v1.person.offboarding_step_due, v1.person.offboarding_step_overdue
Vendorsv1.vendor.review_overdue, v1.vendor.review_due_to_start
Riskv1.risk.acceptance_expiring, v1.risk.treatment_late
Issues and findingsv1.issue.assigned, v1.issue.fixed, v1.asset.finding_overdue
Privacyv1.privacy.review_due
Tasksv1.task.assigned, v1.task.reassigned, v1.task.due_soon, v1.task.overdue, v1.task.completed, v1.task.reopened, v1.task.cancelled
Calendarv1.calendar.owner_left
Auditsv1.audit.request_created, v1.audit.request_assigned, v1.audit.request_provide, v1.audit.request_flag, v1.audit.request_accept, v1.audit.request_due_soon, v1.audit.request_overdue, v1.audit.samples_picked, v1.audit.grant_expiring, v1.audit.internal_audit_report_made, v1.audit.review_started