Security Event Webhook

The endpoint accepts organization-scoped JSON events. It validates the integration secret and limits requests to 120 per minute.

Preview

Access

The adapter runs in the customer environment and sends selected JSON events to the organization-scoped portal webhook.

Request

A synthetic single event uses fields validated by the handler.

POST/api/integrations/webhook/00000000-0000-4000-8000-000000000001
Synthetic curl example · synthetic values
curl -i -X POST 'https://portal.rfi-irfos.com/api/integrations/webhook/00000000-0000-4000-8000-000000000001' \
  -H 'Authorization: Bearer $SYNTHETIC_WEBHOOK_TOKEN' \
  -H 'Content-Type: application/json' \
  --data '{"id":"synthetic-event-001","type":"security.alert","title":"Synthetic alert","severity":"medium"}'

Response

The portal webhook returns acceptance and duplicate status. An event is stored as a technical observation.

202 application/json
{"data":{"accepted":true,"duplicate":false}}

Error codes

400 for an invalid payload, 401 for an invalid secret, 413 for an oversized body, 415 for an unsupported media type, 429 for the minute limit, and 503 for a storage failure.

Evidence

Code evidenceRoute details
app/api/integrations/webhook/[id]/route.tsSource
app/api/v1/integrations/route.tsSource
npm run test:custom-webhookTest · Not run · isolated database smoke test

This branch contains source evidence and the listed local test results. Live also requires evidence of production operation; until then the status remains Preview.

Local index↑ ↓ · Enter · Esc