---
title: Remove Webhook Slot
description: "Delete an inbound webhook slot from PocketPaw. The webhook URL and secret are immediately invalidated and any future payloads sent to it will be rejected."
api: POST /api/webhooks/remove
baseUrl: http://localhost:8000
layout: '@/layouts/APIEndpointLayout.astro'
auth: bearer
section: API Reference
ogType: article
keywords: ["remove webhook", "delete webhook", "revoke webhook"]
tags: ["api", "webhooks"]
---
## Overview
Removes an inbound webhook slot by name. Any future requests to the webhook URL will return 404.
## Request Body
The name of the webhook slot to remove.
## Response
`"ok"` on success
## Error Responses
| Status | Description |
|--------|-------------|
| 404 | Webhook slot not found |
```bash
curl -X POST "http://localhost:8000/api/webhooks/remove" \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{"name": "github-events"}'
```
```javascript
const response = await fetch("http://localhost:8000/api/webhooks/remove", {
method: "POST",
headers: {
"Authorization": "Bearer ",
"Content-Type": "application/json"
},
body: JSON.stringify({ name: "github-events" })
});
const data = await response.json();
console.log(data);
```
```python
import requests
response = requests.post(
"http://localhost:8000/api/webhooks/remove",
headers={"Authorization": "Bearer "},
json={"name": "github-events"}
)
print(response.json())
```
```json
{
"status": "ok"
}
```
```json
{
"detail": "Webhook slot not found"
}
```