---
title: "Create a webhook"
method: POST
path: "/workspaces/{workspacePublicId}/webhooks"
tags: ["Webhooks"]
---

# Create a webhook

`POST /workspaces/{workspacePublicId}/webhooks`

Creates a new webhook for a workspace

## Path parameters

- `workspacePublicId` string, required

## Request body

- object
  - `name` string, required
  - `url` string, uri, required
  - `secret` string
  - `events` string[], required

## Response `200`

Successful response

- object
  - `publicId` string, required
  - `name` string, required
  - `url` string, required
  - `events` string[], required
  - `active` boolean, required
  - `createdAt` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

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