---
title: "Create Webhook Endpoint"
method: POST
path: "/webhooks"
tags: ["webhooks"]
---

# Create Webhook Endpoint

`POST /webhooks`

## Request

- The document declares no server URL.
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/webhooks/post.ts> (a function with typed inputs; its response is checked against the schema)

Создать новый webhook.

## Request body

- WebhookCreateRequest
  - `name` string, required
  - `url` string, required
  - `event_type` string, required
  - `secret` string, nullable
  - `description` string, nullable

## Response `201`

Successful Response

- WebhookResponse
  - `id` integer, required
  - `name` string, required
  - `url` string, required
  - `event_type` string, required
  - `is_active` boolean, required
  - `description` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_triggered_at` string, date-time, nullable, required
  - `failure_count` integer, required
  - `success_count` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `2360876ff9c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/changes/webhooks/post.md)

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
