v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Add webhook

Add webhook

post/webhooks

Request body

target_urlstring required

The target url of the webhook

event_type'issue.open.created' | 'issue.snoozed' | 'issue.ignored.manual' | 'ci.gate.failed' | 'issue.closed' | 'ci.gate.passed' | 'issue.sla.breached' | 'zen.attack' | 'zen.attack_wave' | 'zen.outbound.discovered' | 'scan.image.finished' | 'issue.unignored' | 'issue.severity.changed.manual' | 'configuration_issue.detected' required

The event type of the webhook

Example request

{
  "target_url": "https://example.com/webhook",
  "event_type": "issue.open.created"
}

Response

The webhook has been added

webhook_idinteger

The id of the webhook

Example response

{
  "webhook_id": 1
}