"ok" on successPOST
/api/webhooks/remove BearerRemove Webhook Slot
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.
Overview
Removes an inbound webhook slot by name. Any future requests to the webhook URL will return 404.
Request Body
Body Parameters
name requiredThe name of the webhook slot to remove.
Response
status stringError Responses
| Status | Description |
|---|---|
| 404 | Webhook slot not found |
curl -X POST "http://localhost:8000/api/webhooks/remove" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"name": "github-events"}'const response = await fetch("http://localhost:8000/api/webhooks/remove", { method: "POST", headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ name: "github-events" })});const data = await response.json();console.log(data);import requests
response = requests.post( "http://localhost:8000/api/webhooks/remove", headers={"Authorization": "Bearer <token>"}, json={"name": "github-events"})print(response.json()){ "status": "ok"}{ "detail": "Webhook slot not found"}Was this page helpful?
Request
curl -X POST "http://localhost:8000/api/webhooks/remove" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"const response = await fetch("http://localhost:8000/api/webhooks/remove", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <token>"
},
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
"http://localhost:8000/api/webhooks/remove",
headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)
print(response.json())package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("POST", "http://localhost:8000/api/webhooks/remove", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer <token>")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Response
Send a request to see the response
Authorization
Headers
Body
Response