---
title: "Create Webhook Endpoint"
method: POST
path: "/v1/webhook-endpoints"
tags: ["webhook-endpoints"]
---

# Create Webhook Endpoint

`POST /v1/webhook-endpoints`

## Headers

- `X-API-Key` string, nullable

## Request body

- WebhookEndpointCreate
  - `workspace_id` string, uuid, required
  - `url` string, uri, required
  - `events` string[] — Event types to subscribe to. Empty = all.
  - `description` string, nullable
  - `active` boolean

## Response `201`

Successful Response

- WebhookEndpointCreatedOut
  - `id` string, uuid, required
  - `workspace_id` string, uuid, required
  - `url` string, required
  - `events` string[], required
  - `active` boolean, required
  - `description` string, nullable, required
  - `created_by` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `secret` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
