List sessions for an agent
sessions
List sessions for an agent
Return all sessions belonging to the authenticated user for a given agent.
Args:
agent_id (str): Agent whose sessions to list.
user_id (str): Injected authenticated user ID.
storage (StorageBase): Injected storage backend.
Returns:
ListSessionsResponse: All matching session records and their count.
Raises:
HTTPException: 404 if the agent does not exist or does not belong
to the authenticated user.
GET
List sessions for an agent
Documentation Index
Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Query Parameters
Filter sessions by agent ID.