Zum Inhalt springen

Webhook löschen DELETE ​

Lösche einen Webhook dauerhaft. Diese Aktion kann nicht rückgängig gemacht werden.

Endpunkt ​

DELETE https://api.pocketalert.app/v1/webhooks/{tid}

Authentifizierung ​

Erforderlich

Füge eines dieser Header in deiner Anfrage hinzu:

Anfrage ​

Pfad-Parameter ​

ParameterTypErforderlichBeschreibung
tidstring✅Eindeutige ID des Webhooks
HeaderErforderlichBeschreibung
Token✅Dein API-Schlüssel
Authorization✅Bearer <jwt-token>

Beispielanfrage ​

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();

Antwort ​

Erfolgreiche Antwort ​

200 OK

Webhook erfolgreich gelöscht

json
{
  "data": "success"
}

Fehlerantworten ​

StatusBeschreibung
401Nicht autorisiert — Token ungültig oder fehlt
404Nicht gefunden — Webhook existiert nicht

Pocket Alert Dokumentation