Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/google-android:google-android-devices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Google Play EMM Devices API
version: v1
description: Generated from Google's published Discovery document for Google Play EMM API (androidenterprise v1, revision 20261110). 6 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://androidenterprise.googleapis.com
tags:
- name: Devices
paths:
/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state:
get:
operationId: androidenterprise.devices.getState
summary: Get state devices
description: 'Checks if a device can access Google apps and services for a user. Returns whether access is "enabled" or "disabled". A "disabled" state prevents the user''s Managed Google Account on the device from successfully authenticating with Google. This blocks access to most Google applications and services, including Google Play, as the device cannot prove its entitlement to access them. New devices default to "disabled". Important: Enforcement of this state depends on the following conditions: * The user must be a managed google account. * The enterprise must be a managed google domain. * Third-party Android mobile management must be active in the Google Admin Console for the user''s Organizational Unit. If these conditions aren''t met, access may still be possible even in a "disabled" state.'
parameters:
- name: enterpriseId
in: path
required: true
description: The ID of the enterprise.
schema:
type: string
- name: userId
in: path
required: true
description: The ID of the user.
schema:
type: string
- name: deviceId
in: path
required: true
description: The ID of the device.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceState'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/androidenterprise
- apiKey: []
tags:
- Devices
put:
operationId: androidenterprise.devices.setState
summary: Set state devices
description: 'Sets whether a device''s access to Google services (including Google Play) is enabled or disabled for the specified user. Setting the state to "enabled" allows the Google Account to access Google services, while "disabled" blocks access by preventing OAuth token issuance. Preconditions for Enforcement: 1. This setting is only effective for Google-managed users. 2. The enterprise must be linked to a Google Managed Domain. 3. Enforcement requires third-party Android mobile management to be enabled within the Google Admin Console for the user''s Organizational Unit. If these preconditions are not met, changes to this state may be ignored.'
parameters:
- name: enterpriseId
in: path
required: true
description: The ID of the enterprise.
schema:
type: string
- name: userId
in: path
required: true
description: The ID of the user.
schema:
type: string
- name: deviceId
in: path
required: true
description: The ID of the device.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceState'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceState'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/androidenterprise
- apiKey: []
tags:
- Devices
/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}:
put:
operationId: androidenterprise.devices.update
summary: Update devices
description: Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play. When provisioning a new device, you should set the device policy using this method before adding the managed Google Play Account to the device, otherwise the policy will not be applied for a short period of time after adding the account to the device.
parameters:
- name: enterpriseId
in: path
required: true
description: The ID of the enterprise.
schema:
type: string
- name: userId
in: path
required: true
description: The ID of the user.
schema:
type: string
- name: deviceId
in: path
required: true
description: The ID of the device.
schema:
type: string
- name: updateMask
in: query
required: false
description: Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,...
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Device'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Device'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/androidenterprise
- apiKey: []
tags:
- Devices
get:
operationId: androidenterprise.devices.get
summary: Get devices
description: Retrieves the details of a device.
parameters:
- name: enterpriseId
in: path
required: true
description: The ID of the enterprise.
schema:
type: string
- name: userId
in: path
required: true
description: The ID of the user.
schema:
type: string
- name: deviceId
in: path
required: true
description: The ID of the device.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Device'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/androidenterprise
- apiKey: []
tags:
- Devices
/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices:
get:
operationId: androidenterprise.devices.list
summary: List devices
description: Retrieves the IDs of all of a user's devices.
parameters:
- name: enterpriseId
in: path
required: true
description: The ID of the enterprise.
schema:
type: string
- name: userId
in: path
required: true
description: The ID of the user.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/DevicesListResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/androidenterprise
- apiKey: []
tags:
- Devices
/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload:
post:
operationId: androidenterprise.devices.forceReportUpload
summary: Force report upload devices
description: Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device. If you exceed the quota, then the Google Play EMM API returns HTTP 429 Too Many Requests.
parameters:
- name: enterpriseId
in: path
required: true
description: The ID of the enterprise.
schema:
type: string
- name: userId
in: path
required: true
description: The ID of the user.
schema:
type: string
- name: deviceId
in: path
required: true
description: The ID of the device.
schema:
type: string
responses:
'200':
description: Successful response
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/androidenterprise
- apiKey: []
tags:
- Devices
components:
schemas:
ManagedConfiguration:
type: object
properties:
productId:
description: The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm".
type: string
managedProperty:
description: The set of managed properties for this configuration.
type: array
items:
$ref: '#/components/schemas/ManagedProperty'
configurationVariables:
$ref: '#/components/schemas/ConfigurationVariables'
description: Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.
kind:
description: Deprecated.
type: string
description: ' *Deprecated:* New integrations cannot use this method and can refer to our new recommendations '
DeviceReport:
description: Device report updated with the latest app states for managed apps on the device.
properties:
appState:
type: array
items:
$ref: '#/components/schemas/AppState'
description: List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present.
lastUpdatedTimestampMillis:
type: string
description: The timestamp of the last report update in milliseconds since epoch. This field will always be present.
format: int64
type: object
AppState:
properties:
packageName:
description: The package name of the app. This field will always be present.
type: string
keyedAppState:
type: array
items:
$ref: '#/components/schemas/KeyedAppState'
description: List of keyed app states. This field will always be present.
description: List of states set by the app.
type: object
KeyedAppState:
type: object
description: Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
properties:
key:
description: Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.
type: string
stateTimestampMillis:
type: string
description: Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.
format: int64
message:
description: Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.
type: string
severity:
enum:
- severityUnknown
- severityInfo
- severityError
description: Severity of the app state. This field will always be present.
type: string
data:
description: Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.
type: string
AutoInstallConstraint:
properties:
deviceIdleStateConstraint:
type: string
description: Device idle state constraint.
enum:
- deviceIdleStateConstraintUnspecified
- deviceIdleNotRequired
- deviceIdleRequired
networkTypeConstraint:
description: Network type constraint.
enum:
- networkTypeConstraintUnspecified
- anyNetwork
- unmeteredNetwork
type: string
chargingStateConstraint:
description: Charging state constraint.
enum:
- chargingStateConstraintUnspecified
- chargingNotRequired
- chargingRequired
type: string
description: The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.
type: object
Device:
type: object
properties:
retailBrand:
type: string
description: Retail brand for the device, if set. See android.os.Build.BRAND
model:
description: The model name of the device. This comes from android.os.Build.MODEL.
type: string
product:
type: string
description: The product name of the device. This comes from android.os.Build.PRODUCT.
device:
description: The internal hardware codename of the device. This comes from android.os.Build.DEVICE. (field named "device" per logs/wireless/android/android_checkin.proto)
type: string
report:
$ref: '#/components/schemas/DeviceReport'
description: The device report updated with the latest app states.
androidId:
type: string
description: The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0".
latestBuildFingerprint:
type: string
description: The build fingerprint of the device if known.
maker:
description: The manufacturer of the device. This comes from android.os.Build.MANUFACTURER.
type: string
sdkVersion:
description: API compatibility version.
format: int32
type: integer
policy:
$ref: '#/components/schemas/Policy'
description: The policy enforced on the device.
managementType:
description: 'Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - "managedDevice", a device that has the EMM''s device policy controller (DPC) as the device owner. - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - "containerApp", no longer used (deprecated). - "unmanagedProfile", a device that has been allowed (by the domain''s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. '
enum:
- managedDevice
- managedProfile
- containerApp
- unmanagedProfile
type: string
description: A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
DeviceState:
description: The state of a user's device, as accessed by the getState and setState methods on device resources.
properties:
accountState:
description: The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state.
enum:
- enabled
- disabled
type: string
type: object
ConfigurationVariables:
description: A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings.
properties:
variableSet:
description: The variable set that is attributed to the user.
items:
$ref: '#/components/schemas/VariableSet'
type: array
mcmId:
description: The ID of the managed configurations settings.
type: string
type: object
ManagedProperty:
description: A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema.
type: object
properties:
valueInteger:
type: integer
description: The integer value - this will only be present if type of the property is integer.
format: int32
valueStringArray:
items:
type: string
type: array
description: The list of string values - this will only be present if type of the property is multiselect.
valueBundleArray:
description: The list of bundles of properties - this will only be present if type of the property is bundle_array.
type: array
items:
$ref: '#/components/schemas/ManagedPropertyBundle'
valueBool:
type: boolean
description: The boolean value - this will only be present if type of the property is bool.
valueBundle:
$ref: '#/components/schemas/ManagedPropertyBundle'
description: The bundle of managed properties - this will only be present if type of the property is bundle.
valueString:
description: The string value - this will only be present if type of the property is string, choice or hidden.
type: string
key:
type: string
description: The unique key that identifies the property.
VariableSet:
type: object
properties:
placeholder:
description: The placeholder string; defined by EMM.
type: string
userValue:
description: The value of the placeholder, specific to the user.
type: string
description: A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only.
DevicesListResponse:
type: object
properties:
device:
description: A managed device.
items:
$ref: '#/components/schemas/Device'
type: array
MaintenanceWindow:
description: Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window.
type: object
properties:
startTimeAfterMidnightMs:
format: int64
description: Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.
type: string
durationMs:
format: int64
type: string
description: Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).
ProductPolicy:
type: object
properties:
managedConfiguration:
$ref: '#/components/schemas/ManagedConfiguration'
description: The managed configuration for the product.
tracks:
description: Deprecated. Use trackIds instead.
items:
type: string
enum:
- appTrackUnspecified
- production
- beta
- alpha
type: array
autoInstallPolicy:
$ref: '#/components/schemas/AutoInstallPolicy'
description: The auto-install policy for the product.
autoUpdateMode:
enum:
- autoUpdateModeUnspecified
- autoUpdateDefault
- autoUpdatePostponed
- autoUpdateHighPriority
description: The auto-update mode for the product. When autoUpdateMode is used, it always takes precedence over the user's choice. So when a user makes changes to the device settings manually, these changes are ignored.
type: string
productId:
type: string
description: The ID of the product. For example, "app:com.google.android.gm".
trackIds:
description: Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.
type: array
items:
type: string
enterpriseAuthenticationAppLinkConfigs:
items:
$ref: '#/components/schemas/EnterpriseAuthenticationAppLinkConfig'
type: array
description: An authentication URL configuration for the authenticator app of an identity provider. This helps to launch the identity provider's authenticator app during the authentication happening in a private app using Android WebView. Authenticator app should already be the default handler for the authentication url on the device.
description: The policy for a product.
Policy:
type: object
properties:
autoUpdatePolicy:
type: string
description: 'Controls when automatic app updates on the device can be applied. Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency. When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy has no effect. - choiceToTheUser allows the device''s user to configure the app update policy. - always enables auto updates. - never disables auto updates. - wifiOnly enables auto updates only when the device is connected to wifi. *Important:* Changes to app update policies don''t affect updates that are in progress. Any policy changes will apply to subsequent app updates. '
enum:
- autoUpdatePolicyUnspecified
- choiceToTheUser
- never
- wifiOnly
- always
deprecated: true
policyId:
description: An identifier for the policy that will be passed with the app install feedback sent from the Play Store.
type: string
maintenanceWindow:
$ref: '#/components/schemas/MaintenanceWindow'
description: The maintenance window defining when apps running in the foreground should be updated.
productAvailabilityPolicy:
enum:
- productAvailabilityPolicyUnspecified
- whitelist
- all
description: The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
type: string
deviceReportPolicy:
enum:
- deviceReportPolicyUnspecified
- deviceReportDisabled
- deviceReportEnabled
type: string
description: Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".
productPolicy:
items:
$ref: '#/components/schemas/ProductPolicy'
description: The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.
type: array
description: The device policy for a given managed device.
EnterpriseAuthenticationAppLinkConfig:
type: object
properties:
uri:
description: An authentication url.
type: string
description: An authentication URL configuration for the authenticator app of an identity provider.
ManagedPropertyBundle:
properties:
managedProperty:
items:
$ref: '#/components/schemas/ManagedProperty'
description: The list of managed properties.
type: array
description: A bundle of managed properties.
type: object
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
AutoInstallPolicy:
type: object
properties:
minimumVersionCode:
format: int32
type: integer
description: The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. You can set a minimum version code for at most 20 apps per device.
autoInstallPriority:
type: integer
description: The priority of the install, as an unsigned integer. A lower number means higher priority.
format: int32
autoInstallConstraint:
type: array
description: The constraints for auto-installing the app. You can specify a maximum of one constraint.
items:
$ref: '#/components/schemas/AutoInstallConstraint'
autoInstallMode:
description: The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically installed regardless of a set maintenance window.
enum:
- autoInstallModeUnspecified
- doNotAutoInstall
- autoInstallOnce
- forceAutoInstall
type: string
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/androidenterprise: Manage corporate Android devices
externalDocs:
url: https://developers.google.com/android/work/play/emm-api
x-provenance:
method: harvested
publisher: Google
source: https://androidenterprise.googleapis.com/$discovery/rest?version=v1
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)