Google Workspace Devices API

The Devices API from Google Workspace — 13 operation(s) for devices.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 17

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/devices List company-owned devices · List devices #
Ask an LLM
“Which company-owned devices are enrolled in Cloud Identity?”
“Can I filter devices by ownership type or compromised state?”
Tell an agent
List devices in customer {customer}.
Find devices matching {filter}.
POST /v1/devices Enroll a company-owned device · Create devices #
Ask an LLM
“How do I enroll a new company-owned Android phone into Cloud Identity?”
“Can I set the asset tag and serial number when creating a device?”
Tell an agent
Create a company-owned device with serial {serial}.
Enroll a new device with asset tag {asset_tag}.
DELETE /v1/devices/{devicesId} Remove a device · Delete devices #
Ask an LLM
“How do I remove a device from Cloud Identity?”
“Can I delete a company-owned device that was enrolled by mistake?”
Tell an agent destructive · confirm first
Delete device {device}.
Remove the enrolled device {device} from customer {customer}.
GET /v1/devices/{devicesId} Get a device · Get devices #
Ask an LLM
“What model and OS version does a specific enrolled device have?”
“Can I look up one device by its ID?”
Tell an agent
Get device {device}.
Show the details of enrolled device {device}.
POST /v1/devices/{devicesId}:wipe Wipe a device · Wipe devices #
Ask an LLM
“How do I wipe all data from a lost company-owned phone?”
“Can I wipe a device and also remove its activation lock?”
Tell an agent destructive · confirm first
Wipe device {device}.
Wipe device {device} and set remove reset lock to {remove_lock}.
POST /v1/devices/{devicesId}:cancelWipe Cancel a pending device wipe · Cancel wipe devices #
Ask an LLM
“Can I cancel a device wipe that hasn't started yet?”
“What happens if I cancel a wipe before the device receives the command?”
Tell an agent destructive · confirm first
Cancel the pending wipe of device {device}.
Stop the unfinished wipe on device {device}.
POST /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}:wipe Wipe a user's account on a device · Wipe deviceUsers #
Ask an LLM
“How do I wipe only the work account from a company-owned device?”
“Will wiping a user on a device affect their personal apps?”
Tell an agent destructive · confirm first
Wipe user {user} on device {device}.
Remove the work account {user} from device {device} without touching personal data.
POST /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}:block Block a user from a device · Block deviceUsers #
Ask an LLM
“How do I block a user's access to a company-owned device?”
“Can I block a device user without wiping the device?”
Tell an agent destructive · confirm first
Block user {user} on device {device}.
Prevent user {user} from accessing device {device}.
GET /v1/devices/{devicesId}/deviceUsers List users on a device · List deviceUsers #
Ask an LLM
“Which users are associated with a particular company-owned device?”
“Can I filter the device users on a device?”
Tell an agent
List users on device {device}.
Show device users on device {device} matching {filter}.
GET /v1/devices/{devicesId}/deviceUsers:lookup Look up a device user by device · Lookup deviceUsers #
Ask an LLM
“How do I find the device user ID for a given Android ID on a device?”
“Can I look up a device user by iOS device ID?”
Tell an agent
Look up the device user on device {device} with Android ID {android_id}.
Find the device user on device {device} with iOS device ID {ios_device_id}.
POST /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}:cancelWipe Cancel a pending user account wipe · Cancel wipe deviceUsers #
Ask an LLM
“Can I cancel a user account wipe that hasn't finished yet?”
“What's the window to cancel a pending user wipe on a device?”
Tell an agent destructive · confirm first
Cancel the pending wipe of user {user} on device {device}.
Stop the unfinished user account wipe on device {device} for user {user}.
GET /v1/devices/{devicesId}/deviceUsers/{deviceUsersId} Look up a user of a managed device · Get deviceUsers #
Ask an LLM
“Which device user is registered on a managed device?”
“Can I fetch the owner of a corporate phone that was enrolled for MDM?”
Tell an agent
Get device user {deviceUsersId} on device {devicesId}.
Show the enrolled user record {deviceUsersId} for management device {devicesId}.
DELETE /v1/devices/{devicesId}/deviceUsers/{deviceUsersId} Remove a device user · Delete deviceUsers #
Ask an LLM
“How do I revoke a user's access to a company-owned device?”
“Can I delete a device user and revoke their device access at the same time?”
Tell an agent destructive · confirm first
Delete user {user} from device {device}.
Revoke device access for user {user} on device {device}.
POST /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}:approve Approve a device user · Approve deviceUsers #
Ask an LLM
“How do I approve a user's device so they can access company data?”
“Can I approve a device user after it was blocked?”
Tell an agent
Approve user {user} on device {device}.
Allow device user {user} on device {device} to access company data.
PATCH /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates/{clientStatesId} Update a device user's client state · Patch clientStates #
Ask an LLM
“How do I update the health score of a device user?”
“Can I change the compliance state of a device user's client state?”
Tell an agent
Set the health score of client state {state} for user {user} on device {device} to {score}.
Mark client state {state} for user {user} on device {device} as compliant.
GET /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates/{clientStatesId} Get a device user's client state · Get clientStates #
Ask an LLM
“What health score and compliance state does a device user have?”
“Can I read the client state for one device user on a device?”
Tell an agent
Get client state {state} for user {user} on device {device}.
Show the compliance state of device user {user} on device {device}.
GET /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates List client states for a device user · List clientStates #
Ask an LLM
“Which client states exist for a device user on a device?”
“Can I filter the client states of a device user?”
Tell an agent
List client states for user {user} on device {device}.
Show client states on device {device} for user {user} matching {filter}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

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-workspace:google-workspace-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-workspace-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud Identity Devices API
  version: v1
  description: Generated from Google's published Discovery document for Cloud Identity API (cloudidentity v1, revision 20261108). 17 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://cloudidentity.googleapis.com
tags:


# --- truncated at 32 KB (71 KB total) ---
# Full source: https://artifacts.apis.io/google-workspace/openapi/google-workspace-devices-api-openapi.yml