Skip to main content
When available points fall below your threshold, or a create call fails for insufficient balance, the platform 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

  1. A public http or https URL (not localhost).
  2. (Recommended) a secret to verify X-Sigrunai-Signature.
  3. Respond with 2xx within about 10 seconds. Delivery is single-shot; no automatic retries.
Per user, each alert type fires at most once every 24 hours until balance recovers.

Request

Headers

Body fields

Events

Example: below threshold

Example: insufficient to create

Sign the raw request body bytes, not re-serialized JSON.
Compare the lowercase hex to the value after sha256= with a constant-time compare.
Use the raw HTTP body. Re-JSON.stringify before signing will fail.
Also reject timestamps older than about 5 minutes.

Node.js

Python

If no secret is configured, X-Sigrunai-Signature is omitted—protect the endpoint another way.

Tips

  • Return 2xx first, then process asynchronously.
  • Branch on event; do not assume threshold or required always exist.
  • You can also poll /user/balance.
  • Channel is email or webhook, not both for the same alert path.
Last modified on October 15, 2026