Create an alert rule that posts to a signed webhook
create_alertCreates an alert rule on the account that owns your API key (it also shows on the account's /alerts page, labelled "created by API key"). Needs an API key (x-api-key). Same kinds and validation as the site. Give the fields the kind needs (price_above/price_below: unit + priceAda; pct_move: unit + window + pct; volume_spike: unit + multiple; whale_trade: minAda (+ unit); wallet_activity: address; new_pool: unit or minLiquidityAda; nft_floor_above/below: policyId + floorAda; others: paramsJson). Deliver to a signed webhook with webhookUrl (public https only; the HMAC secret is returned ONCE, in webhook.secret) or to an existing targetId; with neither the alert stays in the account inbox. Deliveries are JSON POSTs signed with X-Realtap-Signature: t=<unix>,v1=<hex HMAC-SHA256 of "<t>.<body>"> (verify it and refuse a t more than 5 minutes off your clock), retried with backoff. Rules per account are limited by plan, and a key may create 20 rules an hour. The result links the delivery log; use test_alert to try the webhook.
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": {
"kind": "<kind>"
},
"name": "create_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pct | No | pct_move: the size of the move in percent. | |
| kind | Yes | What to watch. Use `paramsJson` for kinds that need fields not listed below. | |
| unit | No | Token unit: 56-hex policy id followed by the asset name in hex (no separator). Get it from `search` or `list_tokens`. | |
| label | No | A short name for the token / wallet / pool shown in the alert. | |
| drepId | No | DRep kinds: a drep1… id. | |
| minAda | No | whale_trade: smallest single trade in ADA. | |
| poolId | No | Stake pool kinds: a pool1… id. | |
| window | No | pct_move: the window the move is measured over. | |
| address | No | wallet_activity and wallet-based kinds: an addr1… or stake1… address. | |
| floorAda | No | nft_floor_above / nft_floor_below: floor price level in ADA. | |
| multiple | No | volume_spike: last-hour volume as a multiple of the 24 h hourly average (at least 1.5). | |
| policyId | No | NFT floor kinds: the collection policy id (56 hex). | |
| priceAda | No | price_above / price_below: the price level in ADA. | |
| targetId | No | Deliver to an existing delivery target of the account instead (see `list_alerts`). | |
| direction | No | pct_move: which way (default both). | both |
| paramsJson | No | Optional JSON object text with further parameters for the kind (merged with the fields above), e.g. {"types":["TreasuryWithdrawals"]} for gov_new_action. | |
| webhookUrl | No | Public https URL that receives the signed POST. Re-using a URL of the account re-uses its target (no new secret). | |
| cooldownSecs | No | Smallest time between two alerts of this rule (default depends on the kind). | |
| webhookLabel | No | Name for a new webhook target. | |
| minLiquidityAda | No | new_pool: smallest liquidity in ADA (instead of, or with, `unit`). |