auto router
Get Auto Router Session
One auto-routed session, for the key that ran it: the model its last turn was routed to and the session's spend against the router's savings baseline. Built for a coding agent's status line or stop hook, so any virtual key may call it and only ever sees rows written under its own key hash. Reads the LiteLLM_AutoRouterSession rollup, which the asynchronous spend flush fills a moment after each turn; a session with no flushed auto-routed turn yet is a 404. The id is bounded the way the writer bounded it, so an oversized client id still finds its row.
get/auto_router/session
Request
- Base URL: https://apiclaw.biz (the document declares no server; this is the origin it was published from)
- URL: https://apiclaw.biz/auto_router/session
- Auth: API key in header x-litellm-api-key
Query parameters
session_idstring required
The client session id (x-*-session-id header) the turns were sent under
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.