Delete a webhook
Remove a webhook; no further calls are made to it.
Paid plansLive data
DELETEhttps://api.tvguideapi.com/v1/webhooks/{id}
Try itRuns the real call with your key
200 OK
Parameters
| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| id | path | string | required | The webhook id. | wh_3k21 |
Request
curl -X DELETE -H "Authorization: Bearer $TVG_KEY" \ "https://api.tvguideapi.com/v1/webhooks/wh_3k21"
$ch = curl_init("https://api.tvguideapi.com/v1/webhooks/wh_3k21");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TVG_KEY")],
]);
$answer = json_decode(curl_exec($ch), true);
const r = await fetch("https://api.tvguideapi.com/v1/webhooks/wh_3k21", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.TVG_KEY}` },
});
const { data, meta } = await r.json();
import os, requests
r = requests.delete(
"https://api.tvguideapi.com/v1/webhooks/wh_3k21",
headers={"Authorization": f"Bearer {os.environ['TVG_KEY']}"},
)
data = r.json()["data"]
Sample response
{
"data": {
"id": "wh_3k21",
"deleted": true
},
"meta": {
"took_ms": 23
}
}