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.
Query parameters
The client session id (x-*-session-id header) the turns were sent under
The client session id (x-*-session-id header) the turns were sent under
Response
Successful Response
Changes
Changed in 1 of the 51 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○