Session retrieval is now available in both the Python and TypeScript client SDKs. You can fetch individual sessions by ID or list all sessions for a project — with automatic pagination, async support, and DataFrame export built in.
Python#
The client.sessions resource adds three methods:
get(session_id)— Fetch a single session with all its traceslist(project_name, limit)— List sessions for a project with automatic paginationget_sessions_dataframe(project_name)— Return sessions as a pandas DataFrame
Async variants are available on AsyncClient with the same interface.
TypeScript#
Two new functions are exported from @arizeai/phoenix-client/sessions:
getSession({ sessionId })— Fetch a single session with all its traceslistSessions({ projectName })— List all sessions for a project with automatic pagination
Return Types#
Both SDKs return the same shape: each session includes sessionId, projectId, startTime, endTime, and a traces array. Each trace contains traceId, startTime, and endTime.

