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

# Create webhook

`POST /v1/webhook`

Creates a new webhook with event subscriptions. The signing secret is only returned in this response.

## Request body

- CreateWebhookInput — Input for creating a webhook
  - `url` string, uri, required — Webhook URL
  - `description` string, nullable — Webhook description
  - `headers` object — Request headers (e.g. authorization tokens)
  - `events` string[], required — Event types to subscribe to (at least one required)

## Response `201`

The created webhook with signing secret

- object
  - `data` CreateWebhookResponse, required — Webhook with its subscribed event types
    - `id` string, uuid, required — Webhook ID
    - `description` string, nullable, required — Webhook description
    - `url` string, required — Webhook URL
    - `headers` object, required — Request headers
    - `events` string[], required — Event types this webhook is subscribed to
    - `createdAt` string, required — Creation timestamp
    - `updatedAt` string, required — Last update timestamp

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2026-08-17** `887b091b3d81` — 6 warning, 2 info
  - added the new `ISSUE_OPENED` enum value to the `data/allOf[#/components/schemas/WebhookResponse]/events/items/` response property for the response status `201`
  - added the new `ISSUE_RESOLVED` enum value to the `data/allOf[#/components/schemas/WebhookResponse]/events/items/` response property for the response status `201`
  - added the new `conflict` enum value to the `type` response property for the response status `401`
  - added the new `conflict` enum value to the `type` response property for the response status `500`
  - …4 more

[Change history](https://skmtc.dev/roarkhq/apis/roark-analytics-api/changes/v1/webhook/post.md)

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) · [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roarkhq/roark-analytics-api/revisions/1d61b68e9429/schema)
