relay.webhook
Relay a third-party webhook into CallMeter: verify HMAC or shared secret, dedupe by delivery id, store the payload, and forward to the endpoint's destinations with retries. Charges 0.01 credits ($0.0001) per forward, not on receive; see the billing note for failed calls. SIDE EFFECTS: contacts external destination URLs you configured; may retry on failure. Prefer when an agent must accept provider callbacks without running its own queue. Billing and ceiling errors stop the call. Inputs: required id (endpoint id) plus upstream JSON body.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "relay.webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | CallMeter webhook endpoint id (ep_…). Example: ep_live_abc123 | |
| deliveryId | No | Optional idempotent delivery id (maps to X-Webhook-Delivery-Id). Same id within 24h dedupes — no second charge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | accepted | duplicate | forwarded | |
| accepted | No | True when ingress accepted for forward pipeline | |
| duplicate | No | True when same delivery id within 24h dedupe window (no re-charge) | |
| delivery_id | No | Stored delivery id |