POSTs once to your HTTPS URL. You do not need an API key to receive it.
Configure the webhook on the console Recharge page under Balance alerts: choose Webhook, set the URL and optional secret, enable, then save.
What you need
- A public
httporhttpsURL (notlocalhost). - (Recommended) a secret to verify
X-Sigrunai-Signature. - Respond with 2xx within about 10 seconds. Delivery is single-shot; no automatic retries.
Request
Headers
Body fields
Events
Example: below threshold
Example: insufficient to create
Verify the signature (recommended)
Sign the raw request body bytes, not re-serialized JSON.sha256= with a constant-time compare.
Also reject timestamps older than about 5 minutes.
Node.js
Python
X-Sigrunai-Signature is omitted—protect the endpoint another way.
Tips
- Return 2xx first, then process asynchronously.
- Branch on
event; do not assumethresholdorrequiredalways exist. - You can also poll
/user/balance. - Channel is email or webhook, not both for the same alert path.