Heartbeat Monitor
by code.halowerk.com in Developer tools
Create a bounded one-shot deadman monitor: renew its heartbeat deadline, or receive an ownership-verified signed webhook when the first heartbeat is missed. Persistent heartbeat monitor with separate ping, status and management tokens. A first missed deadline permanently closes the monitor and queues one stable signed event, retried up to three times. Webhook origin must explicitly authorize heartbeat-missed POST with the private secret preimage.
https://code.halowerk.com/v1/heartbeat-monitor- Price
- $0.003
- per call in USDC
- Uptime
- 96.7%
- last 30 days
- Response time
- 124 ms
- 167 ms slowest 5%
- Last check
- Passed
- 5 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://code.halowerk.com/v1/heartbeat-monitor
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://code.halowerk.com/v1/heartbeat-monitor
content-type: application/json
{
"duration_seconds": 3600,
"interval_seconds": 60,
"label": "Synthetic heartbeat demo",
"webhook_secret": "halowerk-public-demo-heartbeat-ack-only-v1-20261115",
"webhook_url": "https://code.halowerk.com/heartbeat/demo-receiver"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
duration_seconds | integer | No | Default: 3600. |
interval_seconds | integer | No | Default: 60. |
label | string | Yes | |
webhook_secret | string | Yes | |
webhook_url | string | Yes |
Example response
The provider's example. We can't check it without paying.
Example response, 26 lines
{
"limitations": [
"One-shot monitor, not a recurring alert subscription. Interval10–3600s/default60; duration60–86400s/default3600 and at least twice the interval. Creation arms t… [truncated, 499 chars]",
"POST {monitor_id,ping_token,nonce} to ping_url. Use a new random16byte hexadecimal nonce per intended heartbeat; last32nonces are idempotent retries and do not … [truncated, 409 chars]",
"Publish /.well-known/halowerk-heartbeat-webhook.json exactly {version:1,purpose:\"heartbeat-missed\",method:\"POST\",webhook_url:<exact canonical URL>,secret_sha256… [truncated, 514 chars]",
"Only public DNS HTTPS port443, no IP literals/credentials/query/fragment/redirects/caller headers. Existing guard checks all DNS addresses and pins every TCP/TL… [truncated, 454 chars]",
"Existing hub scans once per second, claims one delivery at a time with15s lease. Up to three attempts,30s then120s retry delay; stable event ID, at least once u… [truncated, 470 chars]"
],
"result": {
"complete_url": "https://code.halowerk.com/heartbeat/complete",
"deadline_at": "2026-11-19T15:10:33.346Z",
"delete_url": "https://code.halowerk.com/heartbeat/delete",
"independent_monitoring": false,
"manage_token": "Qe7IaVCT-zdKOiCWLy0MKXTZ6HQCvDOEV4tU1-S1IUQ",
"monitor_ends_at": "2026-11-19T16:09:33.346Z",
"monitor_id": "b74beb6436da71570ad5cb7d4311bfd5",
"ping_token": "kSCtA1_kRnipMoDwpchxBxlibRUlqvJ7wEsvZ0DSr94",
"ping_url": "https://code.halowerk.com/heartbeat/ping",
"retained_until": "2026-11-20T16:09:33.346Z",
"state": "armed",
"status_token": "ZYdQDleMJfbCyoLYdJDytK7oeO1Y4HKEUGBoMr-sm6Y",
"status_url": "https://code.halowerk.com/heartbeat/status"
},
"service": "heartbeat-monitor",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://code.halowerk.com/v1/heartbeat-monitor' \
-H 'content-type: application/json' \
--data-raw '{"duration_seconds":3600,"interval_seconds":60,"label":"Synthetic heartbeat demo","webhook_secret":"halowerk-public-demo-heartbeat-ack-only-v1-20261115","webhook_url":"https://code.halowerk.com/heartbeat/demo-receiver"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://code.halowerk.com/v1/heartbeat-monitor' \
-H 'content-type: application/json' \
--data-raw '{"duration_seconds":3600,"interval_seconds":60,"label":"Synthetic heartbeat demo","webhook_secret":"halowerk-public-demo-heartbeat-ack-only-v1-20261115","webhook_url":"https://code.halowerk.com/heartbeat/demo-receiver"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcode.halowerk.com%2Fv1%2Fheartbeat-monitor&method=POST
const res = await pay("https://code.halowerk.com/v1/heartbeat-monitor", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"duration_seconds": 3600,
"interval_seconds": 60,
"label": "Synthetic heartbeat demo",
"webhook_secret": "halowerk-public-demo-heartbeat-ack-only-v1-20261115",
"webhook_url": "https://code.halowerk.com/heartbeat/demo-receiver"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://code.halowerk.com/v1/heartbeat-monitor",
json={
"duration_seconds": 3600,
"interval_seconds": 60,
"label": "Synthetic heartbeat demo",
"webhook_secret": "halowerk-public-demo-heartbeat-ack-only-v1-20261115",
"webhook_url": "https://code.halowerk.com/heartbeat/demo-receiver",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 40 ms | $0.003 |
| 15 h ago | Passed | 402 | 131 ms | $0.003 |
| 26 h ago | Passed | 402 | 124 ms | $0.003 |
| 36 h ago | Passed | 402 | 139 ms | $0.003 |
| 46 h ago | Passed | 402 | 127 ms | $0.003 |
Show 10 older checks
| 2 days ago | Passed | 402 | 42 ms | $0.003 |
| 3 days ago | Passed | 402 | 40 ms | $0.003 |
| 5 days ago | Timed out | - | - | - |
| 6 days ago | Passed | 402 | 42 ms | $0.003 |
| 7 days ago | Passed | 402 | 50 ms | $0.003 |
| 7 days ago | Passed | 402 | 39 ms | $0.003 |
| 7 days ago | Passed | 402 | 167 ms | $0.003 |
| 8 days ago | Passed | 402 | 130 ms | $0.003 |
| 8 days ago | Passed | 402 | 134 ms | $0.003 |
| 9 days ago | Passed | 402 | 86 ms | $0.003 |