set_webhook
Register (or replace) the HTTPS endpoint we POST to the instant a matching restock happens — for a server-side AI bot that should not hold a connection open. One webhook per API key; calling again replaces the URL and filters and issues a NEW signing secret. Each POST is JSON { type:"alert", cursor, sentAt, alert } with header X-Bujus-Signature: t=,v1=<hex HMAC-SHA256 of "." keyed by the secret>; reject a signature that does not verify or whose t is more than 5 minutes old. Respond 2xx within 5 seconds; failures are retried 3 times, and 20 consecutive failed deliveries disable the webhook. The secret is returned once — store it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https:// URL on port 443. | |
| kind | No | Default "restock" (buyable stock). "invite", "drawing" and "queue" are retailer events, not stock; "any" includes all. | |
| query | No | Case-insensitive substring of the product name. | |
| retailer | No | Only this retailer. | |
| maxMarkupPct | No | Skip rows priced more than this % over MSRP. | |
| minConfidence | No | Default "high". |