Lens API
Destroy Lens Session
Destroy an active lens session and free up resources
POST
Overview
This endpoint destroys an active lens session, closing any open connections and freeing up resources. Always destroy sessions when you’re done using them to avoid hitting concurrent session limits.Request
The unique session ID to destroy. This is returned when creating a session.
Response
On success, returns the destroyed session record. Errors are returned with an HTTP 4xx status and anerrors array (no is_valid field).
The ID of the destroyed session.
The lens ID the session was attached to.
Final status of the session (typically
SESSION_STATUS_DESTROYED).Identifier of the backend runner that hosted the session.
WebSocket URL the session was reachable at.
Unix timestamp of the last update to the session record.
Total duration the session was active in seconds.