---
title: "Create Hook"
method: POST
path: "/hooks"
tags: ["hooks"]
---

# Create Hook

`POST /hooks`

Creates a new webhook that listens for specific events. Supports optional association with a chat.

## Request body

- object
  - `name` string, required — A human-readable name for the hook.
  - `events` string[], required — List of event types the hook should subscribe to.
  - `chatId` string — The ID of a chat to scope the hook to.
  - `url` string, uri, required — The target URL to receive the webhook payloads.

## Response `200`

Success

- HookDetail — Full configuration details for a webhook, including its scope and subscription.
  - `id` string, required — A unique identifier for the webhook.
  - `object` 'hook', required — Fixed value identifying this object as a webhook.
  - `name` string, required — A user-defined name to label the webhook.
  - `events` string[], required — List of event types this webhook is subscribed to.
  - `chatId` string — Optional ID of the chat that this webhook is scoped to.
  - `url` string, required — Target URL that receives event payloads for this webhook.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2025-09-08** `9924b1bf0d99` — 1 warning, 1 info
  - added the new `message.finished` enum value to the `events/items/` response property for the response status `200`
  - added the new `message.finished` enum value to the request property `events/items/`
- **2025-08-24** `3521652a43a7` — 1 breaking, 1 info
  - removed the enum value `message.finished` of the request property `events/items/`
  - removed the `message.finished` enum value from the `events/items/` response property for the response status `200`

[Change history](https://skmtc.dev/vercel/apis/v0-platform-api-beta/changes/hooks/post.md)

---

[API](https://skmtc.dev/vercel/apis/v0-platform-api-beta.md) · [All operations](https://skmtc.dev/vercel/apis/v0-platform-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vercel/v0-platform-api-beta/revisions/e9f83fb57a16/schema)
