API reference
Test a webhook endpoint
Sends a signed `ping` event now and reports what the URL answered. A 2xx within 10 seconds enables an endpoint that was disabled for failing deliveries.
POSThttps://foundermcp.dev/api/v1/webhook_endpoints/{webhook_endpoint_id}/test
Sends a signed ping event now and reports what the URL answered. A 2xx within 10 seconds enables an endpoint that was disabled for failing deliveries.
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 to ping.
Response
objectstring· required — Alwayswebhook_test.deliveredboolean· required — The URL answered 2xx within 10 seconds.status_codeinteger | null· required — The HTTP status, or null when there was none.errorstring | null· required — Why the delivery failed.duration_msinteger· required — How long the attempt took.webhook_endpointobject· required — The endpoint after the test.
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 POST "https://foundermcp.dev/api/v1/webhook_endpoints/whe_01J9Z6P8C8V0K3W6T2N8R5M1XH/test" \
-H "Authorization: Bearer $FOUNDERMCP_API_KEY"
JavaScript
const response = await fetch('https://foundermcp.dev/api/v1/webhook_endpoints/whe_01J9Z6P8C8V0K3W6T2N8R5M1XH/test', {
method: 'POST',
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/test",
headers={
"Authorization": f"Bearer {os.environ['FOUNDERMCP_API_KEY']}"
},
method="POST",
)
with urllib.request.urlopen(request) as response:
body = json.load(response)
Example response
{
"object": "webhook_test",
"webhook_endpoint_id": "whe_01J9Z6P8C8V0K3W6T2N8R5M1XH",
"event_id": "evt_01J9Z6P8C8V0K3W6T2N8R5M1XJ",
"delivered": true,
"status_code": 200,
"error": null,
"duration_ms": 140
}