---
title: "Create webhook"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Create webhook

`POST /webhooks`

Create a webhook for the current workspace. The webhook will receive events for the specified topics.

## Request body

- object
  - `name` string, required — The name of the webhook
  - `url` string, uri, required — The URL that will receive webhook events
  - `description` string — An optional description for the webhook
  - `topics` string[], required — The event types this webhook should listen to
  - `headers` object — Optional custom headers to include in webhook requests

## Response `200`

Webhook created

- object
  - `id` string, uuid
  - `name` string
  - `url` string, uri
  - `topics` string[]
  - `createdAt` string, date-time

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Missing or invalid API key

---

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