# LiteLLM Hooks ## Pre-call policy check - [POST /v1/litellm/hooks/events/pre](https://docs.capsulesecurity.io/apis/litellm-hooks/litellm-hooks/litellmprehook.md): Sent before LiteLLM forwards a completion request to the upstream model provider. Capsule evaluates the model and messages against tenant policies and returns an allow/deny verdict. The plugin rejects the request when decision is deny and blocking is enabled. ## Post-call telemetry - [POST /v1/litellm/hooks/events/post](https://docs.capsulesecurity.io/apis/litellm-hooks/litellm-hooks/litellmposthook.md): Fire-and-forget telemetry sent after the upstream model call settles. Carries token usage, latency, and success/error detail. Always returns 200 with { "ok": true } once accepted.