Lens API
Get Sessions Metadata
Get detailed metadata for all active lens sessions
GET
Overview
This endpoint returns detailed information about each active lens session in your organization.Request
Optional. Filter to a specific session by ID.
Optional. Shard index for pagination. Use
-1 to retrieve all sessions.Optional. Maximum items per shard. Use
-1 for no limit.Response
Returns an array of session objects, each containing:Unique identifier for the session
The lens ID associated with this session
Unix timestamp of the last activity on this session
Current status of the session
WebSocket endpoint for this session
How long the session has been active in seconds
Identifier of the backend runner hosting the session.
Zero-based index of this session within the runner.