Overview
The LLM Gateway Admin API provides observability and policy controls for organization owners and admins. It covers usage aggregation, request logs, routing decisions, DLP rules, budgets, and inference hooks. All admin routes require a Clerk JWT and organization owner or admin role.Base URL
Endpoints
Virtual-key management is documented on the Authentication page.
Authentication
Usage
Query parameters
Example request
Example response
Logs
Query parameters
Example request
Example response
Routing decisions
Query parameters
Example request
Example response
Routing policies
List policies
Update a policy
Budgets
List budgets
Update a budget
hard budget blocks requests when exceeded. Soft budgets are used for reporting and alerts.
Inference hooks
Inference hooks are documented in detail on the Security: Inference Hooks page. Admin endpoints:DLP rules
DLP rules are documented on the Security: DLP page. Admin endpoints:Error codes
Related pages
- Authentication — virtual-key management
- Proxy — gateway middleware and routing
- Security: DLP — secret scanning and injection detection
- Security: Inference Hooks — pre/post-inference hooks