List Sessions
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"}'
Authorizations
Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.
Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.
Query Parameters
1 <= x <= 10001 <= x <= 10000 <= x <= 10000x >= 1Body
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"} )
Response
Successful Response
Response for listing sessions.
Attributes: results: List of session summaries total: Total number of sessions matching query pagination: Pagination information
Example:
python response = ListSessionsResponse( results=[...], total=50, pagination={...} )

