Webhook integration

Signed HTTPS POST with JSON for n8n, scripts and AI agents. Credentials are stored encrypted in Picokoi and never logged or displayed in full.

Set up a signed HTTPS webhook

  1. Enter any public https:// endpoint (n8n, Make, Zapier, or your own server).
  2. After saving, copy the whsec_… signing secret shown once at the top of the Integrations page.
  3. Click Send test to verify your endpoint returns a 2xx status within 5 seconds.

Payload format

{
  "event": "CHECK_DOWN",
  "check_id": "0193a1b2-...",
  "check_name": "nightly-backup",
  "state": "DOWN",
  "occurred_at": "2026-12-01T10:00:00Z"
}

Events are CHECK_DOWN, CHECK_RECOVERED, and CHANNEL_TEST.

Signature verification

Every request includes X-Picokoi-Timestamp, X-Picokoi-Delivery-Id, X-Picokoi-Event, and X-Picokoi-Signature (v1=<hex>). Verify in constant time:

expected = "v1=" + HMAC_SHA256_HEX(secret, timestamp + "." + raw_body)
Good to know: Picokoi does not follow redirects and times out after 5 seconds. Editing a webhook's URL keeps its existing signing secret.

CLI equivalent

picokoi channel add --name n8n-alerts --url https://example.com/picokoi-hook