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

# Create Webhook Endpoint

`POST /webhooks`

## Request body

- EndpointIn
  - `channels` Channel[], nullable — List of message channels this endpoint listens to (omit for all)
  - `description` string, nullable
  - `disabled` boolean, nullable
  - `filter_types` FilterType[], nullable
  - `metadata` object, nullable
  - `rate_limit` integer, nullable
  - `secret` string, nullable — The endpoint's verification secret. If `null` is passed, a secret is automatically generated. Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24.
  - `uid` string, nullable — Optional unique identifier for the endpoint
  - `url` string, uri, required
  - `version` integer, nullable

## Response `201`

Successful Response

- EndpointOut
  - `channels` Channel[], nullable — List of message channels this endpoint listens to (omit for all)
  - `created_at` string, date-time, required
  - `description` string, required — An example endpoint name
  - `disabled` boolean, nullable
  - `filter_types` FilterType[], nullable
  - `id` string, required — The ep's ID
  - `metadata` object, required
  - `rate_limit` integer, nullable
  - `uid` string, nullable — Optional unique identifier for the endpoint
  - `updated_at` string, date-time, required
  - `url` string, uri, required
  - `version` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/baselayer/apis/baselayer-api-service.md) · [All operations](https://skmtc.net/baselayer/apis/baselayer-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baselayer/baselayer-api-service/revisions/0cc89938bc26/schema)
