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 | ||
| 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 | ||
| 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 | ||
| idempotency_key | No | unique retry key; the same key and input return the original watch without charging twice | |
| expected_network | No | ||
| expected_amount_atomic | No |