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

# Create Webhook

`POST /api/v1/webhooks`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/v1/webhooks`
- Auth: none declared

Subscribe a URL to webhook events. The signing secret is returned once, in this response only; see the Webhooks guide for verification.

## Request body

- CreateWebhookRequest
  - `url` string, required
  - `event_types` string[], required
  - `agent_id` integer, nullable

## Response `200`

Successful Response

- CreateWebhookResponse
  - `id` integer, required
  - `url` string, required
  - `event_types` string[], required
  - `active` boolean, required
  - `created_at` string, required
  - `agent_id` integer, nullable
  - `secret` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
