API reference
Delete a webhook endpoint
Stops sending events to this URL. Waiting events are cancelled, and watches that delivered here drop `webhook_endpoint_id`. A second DELETE returns the same endpoint.
DELETEhttps://foundermcp.dev/api/v1/webhook_endpoints/{webhook_endpoint_id}
Stops sending events to this URL. Waiting events are cancelled, and watches that delivered here drop webhook_endpoint_id. A second DELETE returns the same endpoint.
Authentication
Send Authorization: Bearer gtk_…. Create the key under API Access → API Keys. A missing, invalid or revoked key is 401, including while this API is closed. A valid key while the API is closed for your organization answers 404, the same body as an unknown path. Every response includes FounderMCP-Api-Version and FounderMCP-Request-Id.
Path parameters
webhook_endpoint_idstring· required — The endpoint.
Response
idstring· required — Endpoint id,whe_….objectstring· required — Alwayswebhook_endpoint.urlstring· required — Where events are POSTed.eventsstring[]· required — Subscribed types.pingis not in this list; the test always sends it.statusstring· required —enabled,disabledordeleted. Disabled after 3 events in a row that used every delivery attempt. One of:enabled,disabled,deleted.disabled_reasonstring | null—failing, or null.
Credits
Free.
Errors
- 401
authentication_error— The Authorization header is missing, or the key is unknown or revoked. - 403
permission_error— API access is not part of your plan, or your account is suspended. - 404
not_found— The endpoint does not exist. - 429
rate_limit_error— More than 60 requests per minute, or more than 3 at the same time, on one key. Wait for the Retry-After header. - 500
internal_error— Something went wrong on our side.
Example
cURL
curl -X DELETE "https://foundermcp.dev/api/v1/webhook_endpoints/whe_01J9Z6P8C8V0K3W6T2N8R5M1XH" \
-H "Authorization: Bearer $FOUNDERMCP_API_KEY"
JavaScript
const response = await fetch('https://foundermcp.dev/api/v1/webhook_endpoints/whe_01J9Z6P8C8V0K3W6T2N8R5M1XH', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.FOUNDERMCP_API_KEY}`
}
});
const body = await response.json();
Python
import json
import os
import urllib.request
request = urllib.request.Request(
"https://foundermcp.dev/api/v1/webhook_endpoints/whe_01J9Z6P8C8V0K3W6T2N8R5M1XH",
headers={
"Authorization": f"Bearer {os.environ['FOUNDERMCP_API_KEY']}"
},
method="DELETE",
)
with urllib.request.urlopen(request) as response:
body = json.load(response)
Example response
{
"id": "whe_01J9Z6P8C8V0K3W6T2N8R5M1XH",
"object": "webhook_endpoint",
"status": "deleted",
"disabled_reason": null
}