---
title: "Create Webhook"
method: POST
path: "/api/v1/webhooks"
tags: ["webhooks-browser", "Webhooks"]
---

# Create Webhook

`POST /api/v1/webhooks`

## Request

- Base URL: `https://kyt.infinihash.com`
- URL: `https://kyt.infinihash.com/api/v1/webhooks`
- Auth: API key in header `X-API-Key`

## Request body

- WebhookCreate
  - `url` string, required: HTTPS URL to POST events to
  - `events` string[], nullable: Event filter list. Omit or pass null for all events.

## Response `201`

Successful Response

- WebhookOut
  - `id` string, required
  - `url` string, required
  - `events` string[], nullable, required
  - `active` boolean, required
  - `created_at` string, date-time, required
  - `secret_hint` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/infinihash/apis/infinihash-kyt.md) · [All operations](https://skmtc.dev/infinihash/apis/infinihash-kyt/llms.txt) · [OpenAPI document](https://skmtc.dev/infinihash/apis/infinihash-kyt/revisions/e575fa9c63fd?raw)
