---
title: "Create Webhook"
method: POST
path: "/v1/configs/{configId}/environments/{environmentId}/webhooks"
tags: ["Webhooks"]
---

# Create Webhook

`POST /v1/configs/{configId}/environments/{environmentId}/webhooks`

This endpoint creates a new Webhook in a specified Product
identified by the `productId` parameter, which can be obtained from the [List Products](#operation/get-products) endpoint.

## Path parameters

- `configId` string, uuid, required
- `environmentId` string, uuid, required

## Request body

- WebHookRequestModel
  - `url` string, required — The URL of the Webhook.
  - `content` string, nullable — The HTTP body content.
  - `httpMethod` 'get' | 'post'
  - `webHookHeaders` WebhookHeaderModel[], nullable — List of HTTP headers.
    - `key` string, required — The HTTP header key.
    - `value` string, required — The HTTP header value.
    - `isSecure` boolean — Indicates whether the header value is sensitive.

## Response `201`

When the creation was successful.

- WebhookResponseModel
  - `webhookId` integer, required — The identifier of the Webhook.
  - `url` string, required — The URL of the Webhook.
  - `httpMethod` 'get' | 'post', required
  - `content` string, nullable, required — The HTTP body content.
  - `webHookHeaders` WebhookHeaderResponseModel[], required — List of HTTP headers that the Webhook must send.
    - `key` string, required — The HTTP header key.
    - `value` string, required — The HTTP header value.
    - `isSecure` boolean, required — Indicates whether the header value is sensitive.
  - `config` WebhookConfig, required — The Config where the applied changes will invoke the Webhook.
    - `name` string, required — The Config's name.
    - `configId` string, uuid, required — The Config's identifier.
  - `environment` WebhookEnvironment, required — The Environment where the applied changes will invoke the Webhook.
    - `name` string, required — The Environment's name.
    - `environmentId` string, uuid, required — The Environment's identifier.

## Other responses

- `400` — Bad request.
- `404` — Not found.
- `429` — Too many requests. In case of the request rate exceeds the rate limits.

---

[API](https://skmtc.net/configcat/apis/configcat-public-management-api.md) · [All operations](https://skmtc.net/configcat/apis/configcat-public-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/configcat/configcat-public-management-api/revisions/88fd971944d7/schema)
