Overview
The Devices tab displays:- All devices allocated to your account
- Currently running devices and their streams
- Device status and availability
Device Inventory
Your device inventory shows every device you have access to, organized by type:Device Status
Each device in your inventory displays its current status:These are the human readable labels shown in the dashboard. The API and SDK use lowercase state
values instead. The most important one is
ready, which you filter for with ?state=ready in
REST or with mobilerun.devices.list({ state: ['ready'] }) in the SDK. Other API states include
creating, assigned, rebooting, resetting, stopped, terminated, and maintenance.
A stopped device is parked between sessions: it is switched off and not billed, but its data, installed apps, and identity are preserved so the next session resumes on the same device.Listing devices
Without astate filter, GET /v1/devices returns all devices except terminated and unknown. Use state=ready for devices ready to run tasks, or request state=terminated explicitly. Multiple states can be comma-separated or repeated, such as state=stopped,maintenance or state=stopped&state=maintenance; unknown values return 422.
The platform filter accepts android or ios and combines with the other filters, such as state. To filter by device type instead, see Billing modes.
Device details
GET /v1/devices/{deviceId} can return the device successfully without streamToken when reading that token remains unavailable after retries. Treat the field as optional; retry the read before opening a stream if no token was returned.
Managing Devices
From the Devices tab, you can:Connect Your Own Device
With a Personal Phone subscription, connect your own physical device. Android uses the Mobilerun Portal App (the Portal app is Android only); an iPhone connects over USB in the browser or with themobilerun-ios CLI, see Connect an iPhone. Connected devices appear in your inventory alongside cloud-hosted devices.
When a Personal Phone disconnects cleanly, Mobilerun stops its session and frees its device slot while keeping its ID, owner, and history. If the connection drops unexpectedly, it allows about 30 seconds for a reconnect before stopping the session. Reconnect the device to resume it; normal device-slot checks apply. Personal Phones use their connection to control their state, rather than the stop and resume API calls.
Reset a Device
Reset withmode: "full" to erase apps, accounts, and storage and obtain a new identity, or mode: "identity" to change the fingerprint while keeping apps and data. Use preserve to restore selected configuration last set through the API. Cloud Android supports all four preserve values; Cloud iOS reports resetPreserve: [] (omit preserve), while Personal Phone support follows the handset’s reported list; see preserve support by device type. The examples show an identity reset preserving proxy and location, or a full reset preserving no configuration:
resetting state for the entire reset, including the reconnection and setup steps that follow the wipe. It returns to ready once the reset completes.
Resetting a Personal Phone factory-resets the handset. The device goes offline for several minutes while it wipes and reboots. Mobilerun keeps the device in resetting for up to 5 minutes while it waits for the device to reconnect. When the device comes back online, the device returns to ready within seconds. If the device does not reconnect within that window, Mobilerun terminates the device.
Stop and Resume a Device
Stopping parks a device instead of terminating it. A stopped device keeps its apps, data, and identity, but nothing runs and usage is not billed until you resume it. Use this to pause a device you are not actively using without losing its state. Stopping a device does not cancel a recurring subscription; manage that separately in Billing.stopped state. Filter for parked devices with ?state=stopped in REST or mobilerun.devices.list({ state: ['stopped'] }) in the SDK.
Resuming wakes the same device: Mobilerun checks that capacity is available, starts the device again, and returns it to ready. Resuming a device that is not stopped is a no-op. While it wakes, the device reports assigned with a progress message. Repeating resume reuses the same in-flight request.
If no capacity is available before resume starts, the API returns 409 DEVICE_CAPACITY_UNAVAILABLE and leaves the device stopped. Retry shortly. If capacity disappears after acceptance, the device waits without using phone credits. You can stop a device that is still waking to cancel its pending resume. A failed start parks it again with a retry message, preserving its identity and data.
If billing denies resume, the device stays stopped and its stateMessage explains the problem. Resolve the phone credit balance, allowance, or concurrency limit and resume again.
Minute-billed devices that run out of phone credits are parked automatically and keep their data. Their stateMessage explains that the phone credit balance is exhausted. Resume them after adding phone credits. Stop and resume are available for pay-as-you-go Cloud Android devices; Cloud iOS stop and resume is not available yet.
Free-plan accounts may have exhausted Cloud Android devices terminated instead of parked. Upgrade before exhausting your phone credits if you need to keep the device across sessions.
Not every device supports stopping. Check the device’s capabilities with
device.retrieveCapabilities(): stopping is available when the response reports stop: true. Unsupported stop or resume requests return HTTP 400 with code DEVICE_TOOL_UNSUPPORTED.Idle timeout
The idle timeout automatically stops a pay-as-you-go device that supports stopping after the configured number of minutes without client activity. The device reportsstate: 'stopped' and stopReason: 'IDLE_TIMEOUT', keeps its apps, data, and identity, and stops using phone credits. Resume it when needed; the timer stays enabled and starts afresh.
API tool calls, open stream, ADB, browser, Frida, or port connections, and a held device lease count as activity. Reading device state does not reset the timer, so polling a device does not keep it running. Automatic stopping is not exact to the second. A routine run holds a device lease, which counts as activity and updates lastActivityAt while the timer is on, so a device left running starts a fresh idle countdown after the run.
Without its own setting, an eligible pay-as-you-go device uses the platform default, if one applies. Read the device’s reported default rather than assuming a fixed duration. A device’s own setting overrides the default, including explicitly turning the timer off.
Change the timeout
SendPUT /v1/devices/{deviceId}/idle-timeout with one of these values:
The SDK examples require SDK 6.3.2 or later and set a 30-minute timeout. The helper returns a new
Device with fresh info. To update the original handle’s snapshot after the call, call refresh() on it.
client.devices.updateIdleTimeout('DEVICE_ID', { minutes: 30 })
(Python client.devices.update_idle_timeout("DEVICE_ID", minutes=30)). The same Python methods
are available with await on the async client and AsyncMobilerunSDK device objects.
In Cloud, open Manage device → Overview → Auto-stop to choose a timeout, Off, or Default (N minutes) when a default is available. See Working with cloud devices.
Read the effective timeout
Device details and list results expose the following fields. SDK 6.3.1 includes these fields ondevice.info after devices.get:
Terminate a Device
DELETE /v1/devices/{deviceId} removes a device and erases everything on it. Through the API you can terminate minute-billed devices that are ready or stopped. Subscription devices cannot be terminated with this request; release them from the dashboard. A Personal Phone can be removed from your account once it is disconnected. This releases ownership so anyone can pair it again. If it is still connected, the API returns 409 BYOD_DEVICE_CONNECTED; disconnect and wait until it is offline before retrying. Sign out on the device before handing it to someone else, or its next connection can pair it to your account again.
Billing modes
When you create a device, thebilling query parameter on POST /v1/devices selects how the session is admitted and paid for. Availability of each mode depends on the device type’s billing configuration.
Minute billing is metered only while the device is ready. Setup, reboot, reset, maintenance, and resume do not use phone credits. Metering has whole-minute granularity, so the minute in which the device becomes ready may be charged in full.
Billing-service errors and indeterminate responses never trigger fallback: the request fails closed so a paid session is never opened on an unverified entitlement.
Request minute billing explicitly by appending the query parameter:
The
deviceType parameter accepts android_cloud_phone, ios_phone, or device_slot. Any other value, including the retired dedicated_* aliases, is rejected with HTTP 422. The same values apply to the type filter on GET /v1/devices. Older iOS devices are reported as ios_phone.Device operation errors
Device creation errors
When you create a device or connect your own device, Mobilerun checks type availability and the entitlement, phone credits, or capacity required by the selected billing mode. If a check fails, the API returns one of these errors:
Example error body from a device creation request:
SUBSCRIPTION_REQUIRED, MINUTE_BALANCE_EXHAUSTED, and PAYMENT_REQUIRED all return HTTP 402. Match on the code field to tell them apart. If your own device cannot connect through the Portal app, verify that your Personal Phone subscription is active.SUBSCRIPTION_REQUIRED and RESOURCE_EXHAUSTED with details.reason: "plan_device_slots_exhausted" only surface for explicit billing=subscription requests, or for auto requests when minute billing is not enabled for the device type. With auto, either denial silently falls back to minute billing when it is enabled.
For 429 RESOURCE_EXHAUSTED, read details.reason instead of matching message text: plan_device_slots_exhausted means your plan has no free slot; capacity_unavailable means the platform has no capacity for the device type. Retry later for platform capacity; upgrading does not help. Handle missing or unrecognized reasons without assuming either cause.
Retry device creation safely
Send anIdempotency-Key header on POST /v1/devices and reuse it with the same request after a timeout or connection error. Mobilerun returns the original device with its current state and Idempotent-Replayed: true, rather than creating and billing another device. Keys are scoped to your account, retained for at least 24 hours, and must contain 1–255 printable ASCII characters without spaces.
A denial before a device exists frees the key, so a retry checks billing and capacity again. If creation fails after a device exists, the key stays bound to it; use a fresh key to start over.