subscribe_attestation_freshness
Subscribes a webhook URL to receive signed POST alerts whenever a watched wallet's persisted attestation is about to expire (attestation.expiring_soon, fires once when within attestation_expiry_warning_days of expires_at) or has expired (attestation.expired, fires once when expires_at crosses). Backed by the same paid drift subscription ($0.01) so the same callback also receives reputation.drift events unless threshold_tier_change=false and threshold_score is set high. 30-day paid window. Each POST includes X-InsureLink-Event header and the schema 'insurelink/attestation-event/v1'. Requires x402 payment ($0.01). Returns payment instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Wallet address whose attestation freshness to monitor. | |
| callback_url | Yes | HTTPS endpoint that will receive POST attestation-expiry alerts. | |
| duration_days | No | Length of the paid monitoring window in days. Default 30. | |
| threshold_score | No | Reputation drift threshold reused on the same subscription. Default 5. Set 100 to mute drift events and only receive attestation events. | |
| max_notifications | No | Cap on POST alerts before subscription auto-exhausts. Default 100. | |
| threshold_tier_change | No | If true (default), tier flips also fire reputation.drift events on this subscription. | |
| attestation_expiry_warning_days | No | How many days before expires_at to fire attestation.expiring_soon. Default 7. Set 0 to disable early warning and only fire on attestation.expired. |