POST
Register a webhook endpoint

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
name
string
required
Maximum string length: 100
url
string<uri>
required

Must be http or https, must not carry credentials, and must not resolve onto the internal network.

Maximum string length: 2048
Example:

"https://hooks.example.com/trustivan"

events
enum<string>[]
required

The event types this endpoint receives. An endpoint that received everything would be one whose owner cannot reason about what it will be sent.

Minimum array length: 1
Available options:
scan.completed,
verdict.recorded,
finding.state_changed,
finding.sla_breached,
audit.recorded,
nhi.finding.state_changed,
nhi.credential.expiring,
nhi.action.denied

Response

Created. The response carries secret, the only time it is ever returned.

The response is of type object.