---
title: "Add a webhook"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Add a webhook

`POST /webhooks`

Adds a new webhook to an organization.

## Request body

- WebhookRequest
  - `name` string, required — Name of the webhook
  - `url` string, uri, required — URL this webhook will send events to
  - `events` string[], required — Events that this webhook will get triggered by
  - `enabled` boolean — Set whether or not the webhook should be active when created

## Response `201`

Webhook registered successfully

- WebhookSuccessResponse
  - `success` boolean, required
  - `data` Webhook, required
    - `id` string, uuid, required — ID of the webhook
    - `name` string, required — Name of the webhook
    - `url` string, uri, required — URL the webhook will send events to
    - `events` string[], required — Events this webhook will send updates for
    - `created_at` string, date-time, required — Timestamp when this webhook was created
    - `updated_at` string, date-time, required — Timestamp when this webhook was updated
    - `enabled` boolean, required — Set to true if the webhook is active

## Other responses

- `400` — Error - malformed request
- `401` — Invalid credentials

---

[API](https://skmtc.net/dyte-io/apis/dyte-rest-apis.md) · [All operations](https://skmtc.net/dyte-io/apis/dyte-rest-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dyte-io/dyte-rest-apis/versions/f62d3edd92ae/schema)
