List Sessions
List active sessions for the authenticated user, newest first.
When project_id is supplied, the result is restricted to sessions
assigned to that project - backs the chat sidebar’s project selector
(Step 8). The filter is also user-scoped, so a project_id belonging
to another user simply yields an empty list rather than leaking.
When q is supplied and non-empty after strip, the result is
further restricted to sessions whose title contains q as a
case-insensitive substring. The match is lower(title) LIKE lower('%q%') with LIKE wildcards in q escaped, so it is backed
by the ix_sessions_lower_title functional index and a user-typed
% or _ matches literally. The filter is always combined with
the user scope, so q never widens beyond the caller’s sessions.
IDOR AUDIT PASS — filters by Session.user_id == authenticated user_id
Authorizations
EDN API key presented as 'Bearer ' in the Authorization header. Create and manage keys from the Console.
Query Parameters
Max sessions to return (capped at 200)
x >= 1Pagination offset
x >= 0Optional project filter - only sessions in this project
Case-insensitive substring filter on the session title
