---
title: "Create Security Webhook"
method: POST
path: "/repos/{repo_id}/security/webhooks"
tags: ["security"]
---

# Create Security Webhook

`POST /repos/{repo_id}/security/webhooks`

## Path parameters

- `repo_id` string, required

## Request body

- SecurityWebhookCreate
  - `url` string, required
  - `events` string[], required
  - `format` 'json' | 'slack'

## Response `201`

Successful Response

- SecurityWebhookCreated
  - `webhook` SecurityWebhook, required — An outbound endpoint row WITHOUT its signing secret — the secret is returned exactly once at creation and never again.
    - `id` string, required
    - `repo_id` string, nullable
    - `team_id` string, nullable
    - `url` string, required
    - `events` string[]
    - `format` 'json' | 'slack'
    - `active` boolean
    - `failure_count` integer
    - `last_delivery_at` string, nullable
    - `last_error` string, nullable
    - `created_at` string, nullable
  - `secret` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/ab200f4d1489?raw)
