Skip to main content
POST
/
v1
/
webhooks
Register a new webhook endpoint
curl --request POST \
  --url https://gateway.inviolet.ai/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "approval.granted"
  ]
}
'

Authorizations

Authorization
string
header
required

API key minted at /settings/api-keys. Three scopes: read_only, policy_write, admin.

Body

application/json
url
string<uri>
required
events
enum<string>[]
required
Available options:
approval.granted,
approval.denied,
audit.export.completed

Response

201

Created (signing secret in response — store it now).