Session Lifecycle

Close and release a device session

Closes an active device session and releases the device back to the pool. The session transitions to CLOSING state and then CLOSED. For private devices, set rebootDevice to true to reboot the device after release. Once closed, the session cannot be reused — create a new session to continue testing.

delete/sessions/{sessionId}

Request

Path parameters

sessionIdstring required

The id of the device session

Query parameters

rebootDeviceboolean

Perform a device reboot after session release. Only applicable for private devices.

Response

Session is closing

sessionIdstring

Unique id of device session

state'PENDING' | 'CREATING' | 'ACTIVE' | 'CLOSING' | 'CLOSED' | 'ERRORED'

Example response

{
  "sessionId": "123e4567-e89b-12d3-a456-426614174000",
  "state": "CREATING"
}

Changes

No recorded changes to this operation across all 1 revision of this API.