List Sessions
beta.chat.list(ChatListParams**kwargs) -> SyncPaginatedCursor[ChatListResponse]
GET/api/v1/chat
List all chat sessions for the current project.
List Sessions
import os
from llama_cloud import LlamaCloud
client = LlamaCloud(
api_key=os.environ.get("LLAMA_CLOUD_API_KEY"), # This is the default and can be omitted
)
page = client.beta.chat.list()
page = page.items[0]
print(page.session_id){
"items": [
{
"last_updated_at": "2026-04-22T12:34:41.342245",
"session_id": "ses-abc123",
"generated_title": "What were the main findings in Q3?...",
"index_ids": [
"idx-abc123",
"idx-def456"
],
"job_metadata": {
"duration_ms": 0,
"error": "error",
"export_config_ids": [
"string"
],
"is_error": true,
"total_input_tokens": 0,
"total_output_tokens": 0,
"turns": 0
}
}
],
"next_page_token": "next_page_token"
}Returns Examples
{
"items": [
{
"last_updated_at": "2026-04-22T12:34:41.342245",
"session_id": "ses-abc123",
"generated_title": "What were the main findings in Q3?...",
"index_ids": [
"idx-abc123",
"idx-def456"
],
"job_metadata": {
"duration_ms": 0,
"error": "error",
"export_config_ids": [
"string"
],
"is_error": true,
"total_input_tokens": 0,
"total_output_tokens": 0,
"turns": 0
}
}
],
"next_page_token": "next_page_token"
}