Endpoint

Overview

Starts a session on each phone: wakes it and begins connecting its network. The request returns once every phone can be controlled or has failed to start. This usually takes a few seconds. If you already hold the phone, the same session is returned. A call without viewId establishes a persistent API hold even if the session was originally opened by a browser view; its identity is preserved. Sessions belong to the user who starts them: your keys and web login share yours. Another user’s session, or an automation’s reservation, returns in_use. A session’s network may still be connecting when this returns. See Network Readiness.

Request Body

string[]
The phones to start a session on. Leave it out to start a session on every phone in your organization.
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.
string
Optional UUID identifying one browser view. Supplying it creates a connection-bound hold instead of a persistent API hold. Keep the view connected through the public session presence WebSocket; a start whose client disappears is cleaned up automatically. Use a new UUID for a new view and reuse it only while reconnecting that view. Ordinary API clients should omit this field.
string
Optional interactive or automation purpose for a new reservation.
boolean
When true, refuse with in_use if you already hold a session instead of renewing it.
string
default:"phone"
phone (default): the session brings up the phone’s own network, its cellular exit and, on an iPhone, its private Wi-Fi. none: no network is brought up. Only an organization that Phones Inc has turned this on for may use none; for any other it is forbidden.
boolean
default:"false"
Answer only once each session’s network is no longer connecting: ready, or failed with a reason. A phone whose network is still connecting when the wait runs out answers with timedOut: true. 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 when the request was carried out. Check each result for how it went on that phone.
Result[]
One Result per phone, in the order of phoneIds.

Phone Errors