webhooks.cc

v2.6.2
io.github.kroqdotdev/webhooks-cc Checked 6 hours ago Published 15 days ago

Capture, inspect, send and assert on webhooks and inbound email from your coding agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_endpoint Create endpoint

Create a temporary webhook capture endpoint in the agent sandbox (no account needed): up to 3 endpoints at a time, 25 captured requests each and 100 in all, deleted 24 hours after the sandbox was created. The first call registers the sandbox, which takes a few seconds of proof of work. Mock responses, notifications and signature verification need an account: see connect_account.

ParameterTypeDescription
ephemeralbooleanCreate a temporary endpoint that auto-expires
expiresInstring | numberAuto-expire after this duration, for example "12h"
mockResponseobjectOptional mock response to return when the endpoint receives a request
namestringDisplay name for the endpoint
notificationUrlstringURL to POST a JSON summary to after each captured request (e.g. Slack/Discord webhook)
responseRulesarrayConditional response rules. Each rule has conditions and a response. First matching rule wins.
signingHeaderstringCustom signature header name. Only used with generic-hmac provider.
signingProviderstringSigning provider for automatic signature verification
signingSecretstringSigning secret (encrypted server-side, never returned); for discord, the application's public key (64 hex characters). Required when signingProvider is set.
sitestringWhich site's dashboard lists the endpoint: webhooks (webhooks.cc), mailhooks (mailhooks.cc) or both (the default when creating). Only the listing: its HTTP URL and email address work either way. Owner…

list_endpoints List endpoints

List this agent's sandbox endpoints. Empty until create_endpoint starts the sandbox.

ParameterTypeDescription
teamstringTeam id or name (case-insensitive). Keeps endpoints shared with you from that team and endpoints you own that are shared with it.

get_endpoint Get endpoint

Get one of this agent's sandbox endpoints by slug, with its sandbox limits and usage.

ParameterTypeDescription
slug *stringThe endpoint slug

delete_endpoint Delete endpoint

Delete one of this agent's sandbox endpoints and its captured requests. Frees a slot; the sandbox's request budget is not refunded.

ParameterTypeDescription
slug *stringThe endpoint slug to delete

list_requests List requests

List recent requests captured by a sandbox endpoint, newest first.

ParameterTypeDescription
endpointSlug *stringThe endpoint slug
kindstringOnly HTTP requests ("http") or only captured emails ("email")
limitintegerMax requests to return
sincenumberOnly return requests after this timestamp in ms

get_request Get request

Get full details for a request captured by a sandbox endpoint.

ParameterTypeDescription
requestId *stringThe request ID

wait_for_request Wait for request

Wait for a request to arrive at a sandbox endpoint.

ParameterTypeDescription
endpointSlug *stringThe endpoint slug to monitor
pollIntervalstring | numberInterval between polls, for example "500ms" or "1s"
timeoutstring | numberHow long to wait, for example "30s"

generate_payload_schema Generate payload schema

Generate TypeScript interfaces, Zod schemas, Pydantic models, or JSON Schema from the bodies of requests captured by a sandbox endpoint. Several requests of one event teach which fields are optional or nullable.

ParameterTypeDescription
endpointSlug *stringThe endpoint slug
eventstringOnly requests whose detected provider event matches, e.g. "invoice.paid" or "push". One event per schema gives the tightest types.
formatstringOutput: "typescript" interfaces, "zod" schemas, "pydantic" models, or "json-schema"
limitintegerHow many of the latest requests to read before filtering
methodstringOnly requests with this HTTP method
namestringRoot type name (default: from the detected event, else WebhookPayload)
pathstringOnly requests with this path
requestIdsarrayUse exactly these requests instead of the latest ones

connect_account Connect account

Connect this agent to a human's webhooks.cc account, for the full tool set (mock responses, signatures, email, teams) and to keep the sandbox endpoints. Returns a link and a 6-digit code: show both to the human, who signs in or signs up with that email and enters the code. Then call wait_for_connection. Calling again gives a new code.

ParameterTypeDescription
email *stringThe email the human signs in to webhooks.cc with (their GitHub or Google primary email if they sign in that way); only someone signed in as it can connect

wait_for_connection Wait for connection

Wait for the human to enter the code from connect_account. On success the full webhooks.cc tools for their account replace these sandbox tools. Returns after timeoutSeconds (default 45) if they have not finished yet; call it again to keep waiting.

ParameterTypeDescription
timeoutSecondsintegerHow long to wait, in seconds (default 45)

about_sandbox About sandbox

Explain what this agent can do without a webhooks.cc account, the sandbox limits, and how to connect an account. No network call.