Skip to main content
Use this endpoint to retrieve a summary of your recent Knoq sessions. The list is scoped to the authenticated user and the active organisation, ordered by the time each session was last updated. This is the same data that populates the sidebar in the Knoq chat interface.
GET /api/managed-agents/sessions

Request

This endpoint has no required parameters. The result set is capped at 50 sessions.

Response

sessions
array
An ordered array of session summary objects, sorted by updatedAt descending (most recently active first). Contains at most 50 entries.

Example

curl https://knoq.one/api/managed-agents/sessions \
  -H "Origin: https://knoq.one" \
  -H "Cookie: <your-session-cookie>"

Errors

StatusMeaning
401The request is not authenticated. Ensure your session cookie is valid and has not expired.