Skip to content

Capsule Security LiteLLM Hooks API (1.0.0)

Webhook endpoints for the Capsule LiteLLM gateway plugin.

The plugin calls events/pre synchronously before forwarding a completion/chat request to the upstream model provider, blocking on the allow/deny verdict. After the upstream call settles (success or failure), it calls events/post for token and latency telemetry. Both endpoints are JWT-authenticated; the token is scoped to a single tenant and environment.

Download OpenAPI description
Overview
Capsule Security Support
License
Languages
Servers
Mock server
https://docs.capsulesecurity.io/_mock/apis/litellm-hooks
Production agentsecurity server
https://agents.capsule.security

LiteLLM Hooks

Operations