Delete Webhook DELETE
Permanently delete a webhook. This action cannot be undone.
Endpoint
DELETE https://api.pocketalert.app/v1/webhooks/{tid}Authentication
Required
Include one of these headers in your request:
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tid | string | ✅ | Webhook unique identifier |
Headers
| Header | Required | Description |
|---|---|---|
Token | ✅ | Your API key |
Authorization | ✅ | Bearer <jwt-token> |
Example Request
bash
curl -X DELETE "https://api.pocketalert.app/v1/webhooks/kblf7mh9j8jjyeh4fx" \
-H "Token: your-api-key"javascript
const tid = 'kblf7mh9j8jjyeh4fx';
await fetch(`https://api.pocketalert.app/v1/webhooks/${tid}`, {
method: 'DELETE',
headers: { 'Token': 'your-api-key' }
});python
import requests
tid = 'kblf7mh9j8jjyeh4fx'
response = requests.delete(
f'https://api.pocketalert.app/v1/webhooks/{tid}',
headers={'Token': 'your-api-key'}
)php
$tid = 'kblf7mh9j8jjyeh4fx';
$response = Http::withHeaders([
'Token' => 'your-api-key',
])->delete('https://api.pocketalert.app/v1/webhooks/'.$tid);
return $response->json();Response
Success Response
200 OK
Webhook deleted successfully
json
{
"data": "success"
}Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — Invalid or missing token |
404 | Not Found — Webhook does not exist |
