Create a standing watch
create_watchKeep watching a source between agent runs and alert when it changes. Persist watch_id and key; later poll_alerts with since= returns only what you missed. Required by type: url/rss/x402 need url; price needs coin plus a threshold; edgar needs ticker or cik. Create includes the baseline and 7 days of polling. Costs $0.005 USDC per call via x402 (Base) — no API key, no account. Calling without payment returns 402 with the payment requirements. Free alternative: GET https://longwatch.dev/demo for a free NVDA Form 4 sample, or POST https://longwatch.dev/try for a 24h watch — no wallet needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cik | No | edgar: SEC CIK, as an alternative to ticker | |
| url | No | url|rss|x402: public URL to watch | |
| body | No | x402: optional JSON object for POST/PUT/PATCH/DELETE, e.g. {"type":"edgar","ticker":"NVDA"}; omit for GET/HEAD | |
| coin | No | price: CoinGecko id, e.g. 'bitcoin' | |
| type | Yes | watch type | |
| above | No | price: alert when USD price crosses above this | |
| below | No | price: alert when USD price crosses below this | |
| forms | No | edgar: form filter, e.g. ["8-K","4"] | |
| method | No | x402: HTTP method, default GET. POST/PUT/PATCH/DELETE can modify the target even without payment; use only on a target you are authorized to probe | |
| ticker | No | edgar: stock ticker, e.g. 'NVDA' | |
| webhook | No | optional: POST alerts to this URL as they occur (signed); polling still works | |
| move_pct_24h | No | price: alert when |24h change| exceeds this percent | |
| expected_scheme | No | x402: optional expected scheme, e.g. exact | |
| idempotency_key | No | unique retry key; the same key and input return the original watch without charging twice | |
| expected_network | No | x402: optional expected CAIP-2 network, e.g. eip155:8453 | |
| expected_amount_atomic | No | x402: optional expected token amount in atomic units, e.g. "1000" for 0.001 USDC |