DELETEAPI key
Delete an endpoint
DELETEapi.aircargomcp.com/v1/webhooks/{id}
Remove the endpoint and its delivery history. Queued deliveries are discarded rather than sent. To pause instead, PATCH active to false, which keeps the secret and the history. Management, so a valid key is enough.
Path parameters
id
Endpoint id.
Response schema
3 fields
Derived from the example response, nested as the JSON is.
data
The payload. Everything an endpoint returns sits under this key.
id
Stable identifier for the record: the endpoint id on the webhook routes, the delivery id on a delivery row.
deleted
True when the endpoint is gone. Deliveries stop immediately and its history goes with it.
curl -X DELETE 'https://api.aircargomcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10' \
-H "Authorization: Bearer tmcp_YOUR_API_KEY"const res = await fetch("https://api.aircargomcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10", {
method: "DELETE",
headers: {
"Authorization": "Bearer tmcp_YOUR_API_KEY"
}
});
const data = await res.json();import requests
res = requests.delete(
"https://api.aircargomcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10",
headers={"Authorization": "Bearer tmcp_YOUR_API_KEY"},
)
data = res.json() Response
{
"data": { "id": "3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10", "deleted": true }
}