---
title: "Create a single webhook"
method: POST
path: "/admin/webhooks/create"
tags: ["Internal", "Admin", "Notifications"]
---

# Create a single webhook

`POST /admin/webhooks/create`

## Request body

- object
  - `url` string
  - `events` WebhookEventType[]
  - `secret` string

## Response `200`

The new webhook

- Webhook
  - `timestamp` string, date-time
  - `lastUsed` string, date-time, nullable
  - `url` string
  - `events` WebhookEventType[]
  - `id` integer

## Other responses

- `400` — Bad request
- `401` — Basic auth failure
- `default` — Unexpected error

## Changes

> 104 revisions in range; 39 could not be searched.

- **2021-09-23** `02fef72d775b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/owncast/apis/owncast-apis/changes/admin/webhooks/create/post.md)

---

[API](https://skmtc.dev/owncast/apis/owncast-apis.md) · [All operations](https://skmtc.dev/owncast/apis/owncast-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/owncast/owncast-apis/revisions/e2ce1f2fcdfa/schema)
