Google Admin SDK Admin Sdk Admin Directory Mobiledevices API

The Admin Sdk Admin Directory Mobiledevices API from Google Admin SDK — 3 operation(s) for admin sdk admin directory mobiledevices.

GitHub OpenAPI

Operations 4

GET /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId} Get mobiledevices #
DELETE /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId} Delete mobiledevices #
POST /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action Action mobiledevices #
GET /admin/directory/v1/customer/{customerId}/devices/mobile List mobiledevices #

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-admin-sdk:google-admin-sdk-admin-directory-mobiledevices-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-admin-sdk-admin-directory-mobiledevices-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Admin SDK API Mobiledevices API
  version: directory_v1
  description: Generated from Google's published Discovery document for Admin SDK API (admin directory_v1, revision 20261109).
    4 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
externalDocs:
  url: https://developers.google.com/workspace/admin/
servers:
- url: https://admin.googleapis.com
paths:
  /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}:
    get:
      operationId: directory.mobiledevices.get
      summary: Get mobiledevices
      description: Retrieves a mobile device's properties.
      parameters:
      - name: customerId
        in: path
        required: true
        description: The unique ID for the customer's Google Workspace account. As an account administrator, you can also
          use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part
          of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users).
        schema:
          type: string
      - name: resourceId
        in: path
        required: true
        description: The unique ID the API service uses to identify the mobile device.
        schema:
          type: string
      - name: projection
        in: query
        required: false
        description: Restrict information returned to a set of selected fields.
        schema:
          type: string
          enum:
          - BASIC
          - FULL
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MobileDevice'
        4XX:
          content: &id001
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id001
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/admin.directory.device.mobile
        - https://www.googleapis.com/auth/admin.directory.device.mobile.action
        - https://www.googleapis.com/auth/admin.directory.device.mobile.readonly
      - apiKey: []
      tags:
      - Mobiledevices
    delete:
      operationId: directory.mobiledevices.delete
      summary: Delete mobiledevices
      description: Removes a mobile device.
      parameters:
      - name: customerId
        in: path
        required: true
        description: The unique ID for the customer's Google Workspace account. As an account administrator, you can also
          use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part
          of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users).
        schema:
          type: string
      - name: resourceId
        in: path
        required: true
        description: The unique ID the API service uses to identify the mobile device.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content: &id002
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id002
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/admin.directory.device.mobile
      - apiKey: []
      tags:
      - Mobiledevices
  /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action:
    post:
      operationId: directory.mobiledevices.action
      summary: Action mobiledevices
      description: Takes an action that affects a mobile device. For example, remotely wiping a device.
      parameters:
      - name: customerId
        in: path
        required: true
        description: The unique ID for the customer's Google Workspace account. As an account administrator, you can also
          use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part
          of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users).
        schema:
          type: string
      - name: resourceId
        in: path
        required: true
        description: The unique ID the API service uses to identify the mobile device.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MobileDeviceAction'
      responses:
        '200':
          description: Successful response
        4XX:
          content: &id003
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id003
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/admin.directory.device.mobile
        - https://www.googleapis.com/auth/admin.directory.device.mobile.action
      - apiKey: []
      tags:
      - Mobiledevices
  /admin/directory/v1/customer/{customerId}/devices/mobile:
    get:
      operationId: directory.mobiledevices.list
      summary: List mobiledevices
      description: Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes
        company-owned devices, use the Cloud Identity [Devices API](https://cloud.google.com/identity/docs/concepts/overview-devices)
        instead. This method times out after 60 minutes. For more information, see [Troubleshoot error codes](https://developers.google.com/workspace/admin/directory/v1/guides/troubleshoot-error-codes).
      parameters:
      - name: customerId
        in: path
        required: true
        description: The unique ID for the customer's Google Workspace account. As an account administrator, you can also
          use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part
          of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users).
        schema:
          type: string
      - name: maxResults
        in: query
        required: false
        description: Maximum number of results to return. Max allowed value is 100.
        schema:
          default: '100'
          format: int32
          type: integer
          minimum: 1
          maximum: 100
      - name: orderBy
        in: query
        required: false
        description: Device property to use for sorting results.
        schema:
          enum:
          - deviceId
          - email
          - lastSync
          - model
          - name
          - os
          - status
          - type
          type: string
      - name: pageToken
        in: query
        required: false
        description: Token to specify next page in the list
        schema:
          type: string
      - name: projection
        in: query
        required: false
        description: Restrict information returned to a set of selected fields.
        schema:
          type: string
          enum:
          - BASIC
          - FULL
      - name: query
        in: query
        required: false
        description: Search string in the format given at https://developers.google.com/workspace/admin/directory/v1/search-operators
        schema:
          type: string
      - name: sortOrder
        in: query
        required: false
        description: Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter.
        schema:
          enum:
          - ASCENDING
          - DESCENDING
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MobileDevices'
        4XX:
          content: &id004
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id004
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/admin.directory.device.mobile
        - https://www.googleapis.com/auth/admin.directory.device.mobile.action
        - https://www.googleapis.com/auth/admin.directory.device.mobile.readonly
      - apiKey: []
      tags:
      - Mobiledevices
components:
  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/admin.directory.userschema: View and manage the provisioning of user schemas on
              your domain
            https://www.googleapis.com/auth/admin.directory.group.readonly: View groups on your domain
            https://www.googleapis.com/auth/admin.directory.resource.calendar: View and manage the provisioning of calendar
              resources on your domain
            https://www.googleapis.com/auth/admin.directory.domain.readonly: View domains related to your customers
            https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly: View your ChromeOS devices' metadata
            https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly: View calendar resources on your domain
            https://www.googleapis.com/auth/admin.directory.device.mobile.readonly: View your mobile devices' metadata
            https://www.googleapis.com/auth/admin.chrome.printers.readonly: See the printers that your organization can use
              with Chrome
            https://www.googleapis.com/auth/admin.directory.user.alias.readonly: View user aliases on your domain
            https://www.googleapis.com/auth/admin.chrome.printers: See, add, edit, and permanently delete the printers that
              your organization can use with Chrome
            https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly: View delegated admin roles for your domain
            https://www.googleapis.com/auth/admin.directory.user: View and manage the provisioning of users on your domain
            https://www.googleapis.com/auth/admin.directory.group: View and manage the provisioning of groups on your domain
            https://www.googleapis.com/auth/admin.directory.user.readonly: See info about users on your domain
            https://www.googleapis.com/auth/admin.directory.rolemanagement: Manage delegated admin roles for your domain
            https://www.googleapis.com/auth/admin.directory.user.security: Manage data access permissions for users on your
              domain
            https://www.googleapis.com/auth/admin.directory.customer: View and manage customer related information
            https://www.googleapis.com/auth/admin.directory.userschema.readonly: View user schemas on your domain
            https://www.googleapis.com/auth/admin.directory.device.mobile.action: Manage your mobile devices by performing
              administrative tasks
            https://www.googleapis.com/auth/admin.directory.orgunit: View and manage organization units on your domain
            https://www.googleapis.com/auth/admin.directory.group.member: View and manage group subscriptions on your domain
            https://www.googleapis.com/auth/admin.directory.device.chromeos: View and manage your ChromeOS devices' metadata
            https://www.googleapis.com/auth/admin.directory.device.mobile: View and manage your mobile devices' metadata
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see
              the email address for your Google Account.
            https://www.googleapis.com/auth/admin.directory.group.member.readonly: View group subscriptions on your domain
            https://www.googleapis.com/auth/admin.directory.orgunit.readonly: View organization units on your domain
            https://www.googleapis.com/auth/admin.directory.user.alias: View and manage user aliases on your domain
            https://www.googleapis.com/auth/admin.directory.customer.readonly: View customer related information
            https://www.googleapis.com/auth/admin.directory.domain: View and manage the provisioning of domains for your customers
  schemas:
    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
    MobileDevice:
      description: Google Workspace Mobile Management includes Android, [Google Sync](https://support.google.com/a/answer/135937),
        and iOS devices. For more information about common group mobile device API tasks, see the [Developer's Guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-mobile-devices.html).
      properties:
        etag:
          description: ETag of the resource.
          type: string
        hardware:
          type: string
          description: Mobile Device Hardware (Read-only)
        name:
          type: array
          description: The list of the owner's user names. If your application needs the current list of device owner names,
            use the [get](https://developers.google.com/workspace/admin/directory/v1/reference/mobiledevices/get.html) method.
            For more information about retrieving mobile device user information, see the [Developer's Guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#get_user).
          items:
            type: string
        devicePasswordStatus:
          type: string
          description: DevicePasswordStatus (Read-only)
        networkOperator:
          type: string
          description: Mobile Device mobile or network operator (if available) (Read-only)
        model:
          description: The mobile device's model name, for example Nexus S. This property can be [updated](https://developers.google.com/workspace/admin/directory/v1/reference/mobiledevices/update.html).
            For more information, see the [Developer's Guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-mobile=devices#update_mobile_device).
          type: string
        supportsWorkProfile:
          description: Work profile supported on device (Read-only)
          type: boolean
        kind:
          default: admin#directory#mobiledevice
          description: The type of the API resource. For Mobiledevices resources, the value is `admin#directory#mobiledevice`.
          type: string
        privilege:
          type: string
          description: DMAgentPermission (Read-only)
        otherAccountsInfo:
          items:
            type: string
          type: array
          description: The list of accounts added on device (Read-only)
        email:
          items:
            type: string
          type: array
          description: The list of the owner's email addresses. If your application needs the current list of user emails,
            use the [get](https://developers.google.com/workspace/admin/directory/v1/reference/mobiledevices/get.html) method.
            For additional information, see the [retrieve a user](https://developers.google.com/workspace/admin/directory/v1/guides/manage-users#get_user)
            method.
        kernelVersion:
          description: The device's kernel version.
          type: string
        type:
          description: The type of mobile device.
          type: string
        serialNumber:
          description: The device's serial number.
          type: string
        securityPatchLevel:
          type: string
          format: int64
          description: Mobile Device Security patch level (Read-only)
        manufacturer:
          type: string
          description: Mobile Device manufacturer (Read-only)
        deviceId:
          type: string
          description: The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software
            generated unique identifier.
        buildNumber:
          description: The device's operating system build number.
          type: string
        developerOptionsStatus:
          description: Developer options enabled or disabled on device (Read-only)
          type: boolean
        unknownSourcesStatus:
          type: boolean
          description: Unknown sources enabled or disabled on device (Read-only)
        bootloaderVersion:
          description: Mobile Device Bootloader version (Read-only)
          type: string
        resourceId:
          type: string
          description: The unique ID the API service uses to identify the mobile device.
        os:
          type: string
          description: The mobile device's operating system, for example IOS 4.3 or Android 2.3.5. This property can be [updated](https://developers.google.com/workspace/admin/directory/v1/reference/mobiledevices/update.html).
            For more information, see the [Developer's Guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-mobile-devices#update_mobile_device).
        hardwareId:
          description: The IMEI/MEID unique identifier for Android hardware. It is not applicable to Google Sync devices.
            When adding an Android mobile device, this is an optional property. When updating one of these devices, this is
            a read-only property.
          type: string
        deviceCompromisedStatus:
          description: The compromised device status.
          type: string
        status:
          type: string
          description: The device's status.
        basebandVersion:
          type: string
          description: The device's baseband version.
        releaseVersion:
          type: string
          description: Mobile Device release version version (Read-only)
        managedAccountIsOnOwnerProfile:
          type: boolean
          description: Boolean indicating if this account is on owner/primary profile or not.
        wifiMacAddress:
          description: The device's MAC address on Wi-Fi networks.
          type: string
        encryptionStatus:
          description: Mobile Device Encryption Status (Read-only)
          type: string
        lastSync:
          description: Date and time the device was last synchronized with the policy settings in the G Suite administrator
            control panel (Read-only)
          format: date-time
          type: string
        userAgent:
          description: Gives information about the device such as `os` version. This property can be [updated](https://developers.google.com/workspace/admin/directory/v1/reference/mobiledevices/update.html).
            For more information, see the [Developer's Guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-mobile-devices#update_mobile_device).
          type: string
        applications:
          description: The list of applications installed on an Android mobile device. It is not applicable to Google Sync
            and iOS devices. The list includes any Android applications that access Google Workspace data. When updating an
            applications list, it is important to note that updates replace the existing list. If the Android device has two
            existing applications and the API updates the list with five applications, the is now the updated list of five
            applications.
          items:
            type: object
            properties:
              packageName:
                description: The application's package name. An example is `com.android.browser`.
                type: string
              versionCode:
                format: int32
                type: integer
                description: The application's version code. An example is `13`.
              displayName:
                description: The application's display name. An example is `Browser`.
                type: string
              versionName:
                description: The application's version name. An example is `3.2-140714`.
                type: string
              permission:
                description: The list of permissions of this application. These can be either a standard Android permission
                  or one defined by the application, and are found in an application's [Android manifest](https://developer.android.com/guide/topics/manifest/uses-permission-element.html).
                  Examples of a Calendar application's permissions are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`.
                items:
                  type: string
                type: array
          type: array
        defaultLanguage:
          type: string
          description: The default locale used on the device.
        adbStatus:
          description: Adb (USB debugging) enabled or disabled on device (Read-only)
          type: boolean
        firstSync:
          type: string
          format: date-time
          description: Date and time the device was first synchronized with the policy settings in the G Suite administrator
            control panel (Read-only)
        meid:
          type: string
          description: The device's MEID number.
        brand:
          description: Mobile Device Brand (Read-only)
          type: string
        imei:
          description: The device's IMEI number.
          type: string
      type: object
    MobileDeviceAction:
      properties:
        action:
          description: The action to be performed on the device.
          type: string
      type: object
    MobileDevices:
      properties:
        nextPageToken:
          description: Token used to access next page of this result.
          type: string
        etag:
          description: ETag of the resource.
          type: string
        kind:
          default: admin#directory#mobiledevices
          description: Kind of resource this is.
          type: string
        mobiledevices:
          items:
            $ref: '#/components/schemas/MobileDevice'
          description: A list of Mobile Device objects.
          type: array
      type: object
x-provenance:
  method: harvested
  publisher: Google
  source: https://admin.googleapis.com/$discovery/rest?version=directory_v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261109)