Skip to content

Return the Google account details of the EMM enrollment stored in the database for the specified device.
Stable

Request

⚠️ Android only.

Retrieves the Google account records Esper has stored for a device's Google EMM enrollment.

Returns the Google user ID, Google device ID, and account type linked to the device. An empty results list means no Google account is linked.

About Device Google Accounts This endpoint reads Esper's records and does not query Google. To see what Google reports, use the emm-managed/ or policy/ endpoints for the same device.

Key Fields / Query Parameters

  • deviceId — UUID of the device
  • google_authentication_token — Treat as a secret; don't log or display it
Path
deviceIdstring, (uuid)required

ID of the device for which to retrieve the EMM enrollment status

cURL
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/v2/devices/{deviceId}/google-accounts/'

Responses

Success

Bodyapplication/json
contentobject
Response
{ "content": { "count": 0, "previous": "string", "next": "string", "results": [ … ] } }