---
title: "Set Webhook for Traffic Monitoring"
method: POST
path: "/kvm/v2/hooks/set"
tags: ["Hooks"]
---

# Set Webhook for Traffic Monitoring

`POST /kvm/v2/hooks/set`

This endpoint allows setting up webhooks for traffic monitoring on a specified KVM VPS.  
The `api_host` parameter, obtained from the **"Create AUTH-session"** response,  
is dynamically set in the URL.  
Provide the `signature`, `kvm_id`, `valid_until`, and webhook configuration details.

## Response `200`

Webhook set successfully.

- InlineResponse20026
  - `status` string — The status of the operation.
  - `hook_id` string — The ID of the created webhook.

## Other responses

- `400` — Bad Request - Missing or invalid parameters.
- `401` — Unauthorized - Invalid or expired session.
- `403` — Forbidden - Permission denied.
- `500` — Internal Server Error - An unexpected error occurred.

---

[API](https://skmtc.net/edisglobal/apis/edis-global-management-api.md) · [All operations](https://skmtc.net/edisglobal/apis/edis-global-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/edisglobal/edis-global-management-api/versions/223263c91ac0/schema)
