---
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

- **2026-07-17** `4e0ebcbe06e8` — 1 breaking
  - the response property `lastUsed` became nullable for the status `200`
- **2026-07-02** `2c556ec0442e` — 1 info
  - added the new optional request property `secret`
- **2026-04-20** `12574af9d578` — 1 warning, 1 info
  - added the new `FEDIVERSE_ENGAGEMENT_FOLLOW` enum value to the `events/items/` response property for the response status `200`
  - added the new `FEDIVERSE_ENGAGEMENT_FOLLOW` enum value to the request property `events/items/`
- **2024-07-02** `618b7ae59cc5` — 1 info
  - endpoint added
- **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)
