POST
Publish an NHI Security event for delivery

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
event
enum<string>
required
Available options:
nhi.finding.state_changed,
nhi.credential.expiring,
nhi.action.denied
event_id
string<uuid>
required

The publisher's own id for this event. The same id publishes once.

data
object
required

The payload for this event. Every kind requires summary, severity and occurred_at; beyond those:

  • nhi.finding.state_changed: finding_id, fingerprint, policy, kind, status (one of open, acknowledged, in_progress, resolved, risk_accepted, false_positive); optionally from, subject_kind, subject_id, actor.
  • nhi.credential.expiring: credential_id, identity_id, provider, standing (expiring or expired), expires_at; optionally credential_type.
  • nhi.action.denied: action_id, identity_id, requested_operation, decision (deny or challenge), decision_basis; optionally agent_id, action_class.

Credential material never appears in a payload, and an actor is named only as a KIND: a payload travels to a destination the customer chose.

occurred_at
string<date-time>

When the fact happened. Defaults to now.

Response

Already published under this id. Nothing was fanned out again; duplicate is true.