Endpoint

Overview

Returns the active sessions on your phones. Use it to see which phones are in use, to read when a session will expire, and to poll network until a phone has internet (see Network Readiness). Reading sessions does not renew them.

Request Body

string[]
Only return the sessions of these phones. Leave it out to return your active sessions on the phones you can access.
string
One phone, instead of phoneIds. The answer’s data is then that phone’s result itself, not a list, and a failure on the phone is the request’s ok: false with the phone’s error (at the HTTP status of its code). Give phoneId or phoneIds, not both.
boolean
default:"false"
Answer only once each session’s network is no longer connecting: ready, or failed with a reason. A session still connecting when the wait runs out is returned as it is. Use it before anything that needs the phone online.
number
default:"90"
With wait: the longest to wait, from 1 to 120 seconds (never past the request’s time limit).

Response

boolean
true on success.
Session[]
Array of Session objects, one per phone that has an active session. A phone without a session is simply not in the list, so the array can be empty.

Errors