---
title: "Create a new webhook subscription"
method: POST
path: "/webhooks/subscriptions"
tags: ["Webhook - Subscriptions"]
---

# Create a new webhook subscription

`POST /webhooks/subscriptions`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/webhooks/subscriptions`
- Auth: HTTP bearer

## Request body

- CreateWebhookSubscriptionDto
  - `name` string, required: A friendly name for the webhook subscription
  - `url` string, uri, required: The URL to send webhook events to
  - `event_types` string[], required: The event types to subscribe to
  - `secret` string: Optional secret for webhook signature verification

## Response `201`

Webhook subscription created successfully

- WebhookSubscriptionResponseDto
  - `id` string, required: The unique identifier of the webhook subscription
  - `name` string, required: A friendly name for the webhook subscription
  - `url` string, required: The URL to send webhook events to
  - `event_types` string[], required: The event types subscribed to
  - `is_active` boolean, required: Whether the webhook subscription is active
  - `last_triggered_at` string: The last time the webhook was triggered
  - `failure_count` number, required: The number of consecutive failures
  - `created_at` string, required: When the webhook subscription was created

---

[API](https://skmtc.dev/focusbear/apis/focusbear-api.md) - [All operations](https://skmtc.dev/focusbear/apis/focusbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/focusbear/apis/focusbear-api/revisions/3a83a3b9a811?raw)
