Retrieve all sessions for a specific agent within a project. Sessions are ordered newest first and include metadata and key used at creation.
This endpoint returns the complete session history for a given agent, ordered newest-first by creation time. Each session record includes the metadata attached at creation and the ID of the key that was used to start it. Use this endpoint to audit agent activity, replay debugging timelines, or surface session IDs for downstream log queries.