Overview

A Session means a phone is awake, connected and ready to be controlled. Control endpoints only work while the phone has an active session. See Sessions for how sessions behave. A Session object always describes an active session. Once a session has ended, the phone’s session is null and it no longer appears in Get Sessions.

Properties

string
Unique session identifier.
string
The phone this session is on.
string
State of the phone’s internet connection for this session.
  • connecting - still being set up. Control works; apps may be offline.
  • ready - the phone has internet.
  • failed - the connection could not be set up.
string
Present when network is failed: why, as a short code. exit_unavailable (no mobile connection was free), wifi_not_joined (an iPhone did not join its network), cleanup_blocked (the last session’s connection could not be confirmed closed), a setup step such as worker_wifi_join_failed, or network_failed. Ending the session and starting a new one retries.
string
When the session started (ISO 8601 timestamp).
string
When the session will end by itself if no further requests arrive (ISO 8601 timestamp). Every control request and every Renew Sessions moves this to 30 minutes from now. A browser-only session can end earlier when its last view disconnects; expiresAt does not promise continued ownership after closing the browser.

Example