# Webhooks API

> KickBot API and MCP reference for webhooks: add HTTPS endpoints, pick events like new tips, rotate the signing secret, send a test and read deliveries.

Source: https://kickbot.com/docs/api/reference/webhooks

Use these actions to manage the webhook endpoints of your channel. KickBot sends a signed HTTPS request to each endpoint when one of its events happens.

Each action is a REST endpoint under `https://kickbot.com/api/v1` and an MCP tool with the same name. The MCP area name is `webhooks`. Use it to load only this area: `https://kickbot.com/api/v1/mcp?areas=webhooks`.

A team member needs one of these permissions in Manage Team: **Tipping configuration** or **Tipping moderation**. Some actions need a specific one (the action says so). Owners and admins have every permission. Write actions also need a read and write key or connection. See [Permissions and security](https://kickbot.com/docs/api/start/permissions-and-security).

How the feature works in the dashboard: [Webhooks](https://kickbot.com/docs/api/start/webhooks).

## Actions

| Tool | REST | Access |
|---|---|---|
| [`list_webhook_events`](#list_webhook_events) | `GET /webhooks/events` | Read |
| [`list_webhooks`](#list_webhooks) | `GET /webhooks` | Read |
| [`get_webhook`](#get_webhook) | `GET /webhooks/{id}` | Read |
| [`create_webhook`](#create_webhook) | `POST /webhooks` | Write |
| [`update_webhook`](#update_webhook) | `PATCH /webhooks/{id}` | Write |
| [`rotate_webhook_secret`](#rotate_webhook_secret) | `POST /webhooks/{id}/rotate-secret` | Write |
| [`test_webhook`](#test_webhook) | `POST /webhooks/{id}/test` | Write |
| [`delete_webhook`](#delete_webhook) | `DELETE /webhooks/{id}` | Write |

## list_webhook_events

**List webhook events.** List the event types this channel can send to a webhook, with a description and an example payload of each.

```http
GET /api/v1/webhooks/events
```

No input fields.

## list_webhooks

**List webhooks.** List the webhook endpoints of the channel. A channel can have 5. The signing secret is never returned, only its first characters (secret_prefix).

```http
GET /api/v1/webhooks
```

No input fields.

## get_webhook

**Get a webhook.** Get one webhook endpoint and its 20 most recent deliveries (status, HTTP status, error). Deliveries are kept for 7 days.

```http
GET /api/v1/webhooks/{id}
```

| Field | Type | Required | Description |
|---|---|---|---|
| `id` (in the path) | string | Yes | The webhook id (a UUID). |

## create_webhook

**Create a webhook.** Create a webhook endpoint: KickBot sends a signed HTTPS POST to the URL for each event. The response has `secret` (whsec_...): it is shown only this once. Store it to verify the X-KickBot-Signature header of each delivery. A channel can have 5 endpoints; over that it fails with limit_reached.

```http
POST /api/v1/webhooks
```

Needs a read and write key or connection.

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | string | No | A label for the endpoint, up to 80 characters. Default: the host name of the URL. |
| `url` | string | Yes | The HTTPS URL KickBot sends events to, up to 500 characters. It must use port 443 and a public host name: local, private and internal addresses are refused. |
| `events` | array of string | Yes | The event types to send, for example ["tip.created"]. Call list_webhook_events for the types you can use. |

## update_webhook

**Update a webhook.** Change the name, URL or events of a webhook endpoint, or turn it on or off. Only the fields you send change. KickBot turns an endpoint off by itself after 25 failed deliveries in a row.

```http
PATCH /api/v1/webhooks/{id}
```

Needs a read and write key or connection.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` (in the path) | string | Yes | The webhook id (a UUID). |
| `name` | string | No | A label for the endpoint, up to 80 characters. Default: the host name of the URL. |
| `url` | string | No | The HTTPS URL KickBot sends events to, up to 500 characters. It must use port 443 and a public host name: local, private and internal addresses are refused. |
| `events` | array of string | No | The event types to send, for example ["tip.created"]. Call list_webhook_events for the types you can use. |
| `enabled` | boolean | No | On (true) or off (false). Turning an endpoint on again also resets its failure count. |

## rotate_webhook_secret

**Rotate a webhook secret.** Make a new signing secret for a webhook endpoint. The old secret stops working at once. The response has `secret` (whsec_...): it is shown only this once. Store it to verify the X-KickBot-Signature header of each delivery.

```http
POST /api/v1/webhooks/{id}/rotate-secret
```

Needs a read and write key or connection.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` (in the path) | string | Yes | The webhook id (a UUID). |

## test_webhook

**Send a test event.** Send a signed webhook.test event to the endpoint now and return the result: ok, the HTTP status, the error and the time it took. Works on an endpoint that is off. A test is not retried.

```http
POST /api/v1/webhooks/{id}/test
```

Needs a read and write key or connection. This has an effect outside your settings (for example on your live stream). Rate limit: 20 per minute.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` (in the path) | string | Yes | The webhook id (a UUID). |

## delete_webhook

**Delete a webhook.** Delete a webhook endpoint and its delivery log. KickBot stops sending to it at once.

```http
DELETE /api/v1/webhooks/{id}
```

Needs a read and write key or connection. This can delete or replace data, and you may not be able to undo it.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` (in the path) | string | Yes | The webhook id (a UUID). |
