For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks

Stratix webhooks — receive events at your endpoint.

Stratix posts JSON events to your endpoint when subscribed.

Subscribe via SDK

client.notifications.add_webhook(
 url="https://hooks.example.com/stratix",
 events=["evaluation.completed", "trace_evaluation.threshold_crossed"],
 secret="your-shared-secret"
)

Verify signatures

Each event includes an X-Stratix-Signature header (HMAC-SHA256 of body using your secret).

import hmac, hashlib
expected = hmac.new(secret.encode(), body, hashlib.sha256).hexdigest()
assert expected == request.headers["X-Stratix-Signature"]

See also

Last updated

Was this helpful?