Бұл құжат қазір тек English тілінде қолжетімді. Аудармалар дайын болған кезде жарияланады.

Webhooks

Event notifications: user.created, payment.succeeded, user.revoked.

Registering an endpoint

Settings → Webhooks → Add. Enter a URL and pick events.

Supported events

  • user.created — new user.
  • user.renewed — subscription renewed.
  • user.revoked — user disconnected.
  • payment.succeeded — payment succeeded.
  • payment.refunded — refund.

Format

POST {your_url}
X-Logrus-Signature: sha256=<hex>

{
  "event": "user.created",
  "data": { ... },
  "timestamp": "2026-04-21T...",
  "idempotency_key": "..."
}

Signature

HMAC-SHA256 of the body with a shared secret (issued at webhook registration). Verify always.

Retries

On 5xx or timeout — up to 10 retries with exponential backoff (1m, 2m, 4m, …). Store the idempotency_key and don't process duplicates.