List agent sessions in the namespace.
Args: request: FastAPI request with tenant context list_request: Optional filters and sorting pagination: Pagination parameters
Returns: ListSessionsResponse with session list
Example:
curl -X POST http://localhost:8000/v1/agents/sessions/list \
-H "Authorization: Bearer {api_key}" \
-H "X-Namespace: {namespace_id}" \
-H "Content-Type: application/json" \
-d '{"status": "active"}'
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'
Request payload for listing sessions.
Attributes: status: Optional status filter filters: Optional additional filters sort: Optional sort configuration
Example:
python request = ListSessionsRequest( status="active", filters={"user_id": "user_123"} )
Successful Response
Response for listing sessions.
Attributes: sessions: List of session summaries total: Total number of sessions matching query pagination: Pagination information
Example:
python response = ListSessionsResponse( sessions=[...], total=50, pagination={...} )