{"templateId":"openapi_docs","sharedDataIds":{"openAPIDocsStore":"oas-apis/litellm-hooks.yaml","sidebar":"sidebar-sidebars.yaml"},"props":{"definitionId":"apis/litellm-hooks.yaml","dynamicMarkdocComponents":[],"baseSlug":"/apis/litellm-hooks","seo":{"title":"Capsule Security LiteLLM Hooks API","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"itemId":"","disableAutoScroll":true,"metadata":{"type":"openapi","title":"Capsule Security LiteLLM Hooks API","description":"Webhook endpoints for the Capsule LiteLLM gateway plugin.\n\nThe plugin calls `events/pre` synchronously before forwarding a\ncompletion/chat request to the upstream model provider, blocking on the\nallow/deny verdict. After the upstream call settles (success or failure),\nit calls `events/post` for token and latency telemetry. Both endpoints are\nJWT-authenticated; the token is scoped to a single tenant and environment.\n"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"docs.capsulesecurity.io","port":4000,"ipAddress":"216.73.216.227"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"main"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/apis/litellm-hooks","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}