v1

latestOpenAPI 3.0.1Apache 2.02026-08-063494581.6 MB
esper_cloud_api_AndroidDevice

Fetch all devices in an enterprise

⚠️ Android only. This endpoint applies exclusively to Android-managed devices enrolled in Esper. For other devices, use the other device management endpoints.

Lists all devices enrolled in an enterprise, with rich filtering options.

Returns a paginated collection of DeviceInfo records with filters for device name, group, IMEI, serial number, state, brand, GMS support, tags, blueprint assignment, and more. Default page size is 20.

About List Enterprise Devices

Devices in Esper represent Android endpoints enrolled under enterprise management. Each device record contains hardware identifiers (IMEI, serial), current state, group membership, blueprint assignment, and status metadata. The group filter traverses the full subtree — filtering by a parent group will include all devices in its subgroups. This endpoint is the primary entry point for fleet-wide device discovery and inventory.

Key Query Parameters

name — filter by device display name group — filter by group UUID; returns all devices in that group and all of its subgroups imei — filter by IMEI number serial — filter by device serial number state — filter by enrollment state (see DeviceStateEnum) brand — filter by device manufacturer/brand is_gms — filter for GMS (Google Mobile Services)-capable devices search — free-text search across device name, IMEI, and MAC address tags — partial text search across device tags assigned_blueprint_id — filter devices by their assigned blueprint UUID current_blueprint_id — filter devices by the blueprint currently applied current_blueprint_version_id — filter by the specific blueprint version currently applied limit — results per page (default: 20)

Common Use Cases

Enumerate all devices in a specific group (including subgroups) for bulk operations or reporting Search for a device by serial number or IMEI when responding to a field support request Filter by blueprint assignment to identify devices running a specific configuration or a stale blueprint version

Best Practices

Use the group filter to scope operations to a target group's subtree rather than processing the full enterprise list Combine search with state to quickly isolate enrolled-but-offline devices in large fleets Use assigned_blueprint_id vs. current_blueprint_id deliberately — a device may have a new blueprint assigned but not yet applied

Workflow

Call this endpoint with relevant filters (group, state, blueprint) to identify the target device set Collect device_id values from the paginated results Use individual device IDs for detail lookups, command dispatch, or app queries

get/enterprise/{enterprise_id}/device/

Path parameters

enterprise_idstring uuid required

ID of the enterprise

Query parameters

namestring

filter by device name

groupstring uuid

filter by group id. It will list all the devices under this gorup including the subgroups

imeistring

filter by imei

serialstring

filter by serial number

state0 | 1 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 110 | 120 | 130 | 140 | 150 | 160 | 170 | 180 | 190 | 200

Following are the Device States and their description

* 0 = Device State is Unspecified
* 1 = Online
* 20 = Disabled (device has been factory reset or removed from the Esper Dashboard)
* 30 = Beginning Provisioning
* 40 = Configuring Google Play (still provisioning)
* 50 = Applying Policies and Installing Applications (still provisioning)
* 60 = Offline
* 70 = Device is undergoing a Factory Reset (reset started from Dashboard)
* 80 = Device Onboarding in Progress
* 90 = Device Onboarding Failed
* 100 = Device Onboarded in Esper
* 110 = Android For Work Account added
* 120 = Apps installed
* 130 = Branding Processed
* 140 = Permission Policy Processed
* 150 = Device Policy Processed
* 160 = Device Settings Processed
* 170 = Security Policy Processed
* 180 = Phone Policy Processed
* 190 = Custom Settings Processed
* 200 = Registered
brandstring

filter by brand

is_gmsboolean

filter for gms devices

searchstring

A search term. Search by device name, imei or mac address

tagsstring

A partial text search for device tags

assigned_blueprint_idstring uuid

Filter by assigned blueprint id

current_blueprint_idstring uuid

Filter by current blueprint id

current_blueprint_version_idstring uuid

Filter by current blueprint version id

limitinteger

Number of results to return per page.

offsetinteger

Return results from this index.

Response

successful operation

countinteger
nextstring url
previousstring url