Delete an endpoint
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.
Counted: 1 call when the request succeeds; refusals and errors are free. A valid key is enough; SchedulesMCP need not be connected. The event deliveries we send are free. See how calls are counted.
Path parameters
Endpoint id.
Response schema
4 fields
Derived from the example response, nested as the JSON is.
Whether the request succeeded.
data
The payload. Everything an endpoint returns sits under this key.
Stable identifier for the record. On the tracking endpoints this is the container UUID, except on a portfolio summary row, where it is the container number.
True when the endpoint is gone. Deliveries stop immediately and its history goes with it.
Errors
Every refusal is { "ok": false, "error": { "code", "message" } }. Branch on the code, and log the message. No refusal or error is counted as a call.
No endpoint with this id on your account. Not counted.
The key is missing, unknown, revoked or past its own expiry date. Not counted.
The monthly call limit or the key's daily limit is spent. Retry-After gives the seconds until it resets. Not counted.
Too many requests in a short window. Wait Retry-After seconds. Not counted.
curl -X DELETE 'https://api.schedulesmcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10' \
-H "Authorization: Bearer smcp_YOUR_API_KEY"const res = await fetch("https://api.schedulesmcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10", {
method: "DELETE",
headers: {
"Authorization": "Bearer smcp_YOUR_API_KEY"
}
});
const data = await res.json();import requests
res = requests.delete(
"https://api.schedulesmcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10",
headers={"Authorization": "Bearer smcp_YOUR_API_KEY"},
)
data = res.json() {
"ok": true,
"data": { "id": "3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10", "deleted": true }
}