Skip to content
Get started

Get Chat Stats

v1.traces.get_chat_stats(TraceGetChatStatsParams**kwargs) -> object
GET/api/v1/traces/chat_stats

Retrieve aggregated statistics for chat traces with efficient filtering by ProjectId, BusinessId, and time range. If no timestamps are provided, defaults to last 15 minutes.

ParametersExpand Collapse
project_id: str

Filter by project ID

formatuuid
end_timestamp: Optional[Union[str, datetime, null]]

End timestamp for filtering (ISO format)

formatdate-time
start_timestamp: Optional[Union[str, datetime, null]]

Start timestamp for filtering (ISO format)

formatdate-time
use_cache: Optional[bool]
ReturnsExpand Collapse
object
Get Chat Stats
from overmind_lab import OvermindLab

client = OvermindLab()
response = client.v1.traces.get_chat_stats(
    project_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response)
{}
Returns Examples
{}