Returns the current state of a session. Use this endpoint to poll for theDocumentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
ready status after creating a session, and to read the agent’s latest response.
Request
| Header | Value |
|---|---|
Authorization | Bearer <MASTER_KEY> |
Path parameters
The unique ID of the session to retrieve.
Response
Unique session ID.
ID of the agent this session belongs to.
Lifecycle state of the session. One of:
| Value | Description |
|---|---|
creating | Sandbox pod is starting. Poll until ready. |
ready | Sandbox is running and accepting messages. |
failed | Bring-up failed. See failure_reason. |
dead | Session was stopped or cleaned up. |
Fine-grained bring-up phase. Useful for showing progress during
creating. One of: creating_sandbox, pod_pending, pod_running, injecting_files, waiting_harness, harness_ready, cloning_repo, installing_deps, harness_listening, ready. null on legacy rows.Optional human-readable detail for the current phase.
Internal URL of the sandbox pod. Populated once the pod is running.
null while creating.Browser-accessible WebSocket base URL for TUI harnesses (
claude-code, codex). Connect with ?token=<tty_token> appended. null for API harnesses or while creating.Bearer token for the harness’s
/tty WebSocket. Append as ?token=<value> when connecting. null if not configured.The latest agent reply, stored after the most recent message completes. Shape:
{ parts: [{ type: "text", text: "..." }] }. null if no message has been sent yet.ISO 8601 creation timestamp.
ISO 8601 timestamp of the last message activity.
null until the first message is sent. The idle timeout countdown starts from this value.Milliseconds of inactivity after which the reconciler reaps a
ready session. Currently 86400000 (24 hours).Human-readable reason why the session entered
failed or dead status. null on healthy sessions.