Provision Android enterprise enrollment token and generate QR code via Android Management API

domain: developers.google.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the Android Management API in Google Cloud Console and create a service account with the androidmanagement.enrollmentTokens.create permission
  2. Create an enterprise by POST to https://androidmanagement.googleapis.com/v1/enterprises using a Google Play Managed account bound to your organization
  3. POST to https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens with a body specifying policyName, duration, allowPersonalUsage, and managedProfileApplicable fields
  4. Extract the value field (the enrollment token string) and the qrCode field from the 200 response; the qrCode field contains JSON provisioning extras
  5. Encode the qrCode JSON into a scannable QR image using any standard QR library and display it on device setup screens
  6. On first boot, the device scans the QR code, Android Device Policy is installed automatically, and the device provisions against the specified policy

Known gotchas

Related routes

Implement passkey registration and authentication using Android Credential Manager API
developer.android.com · 6 steps · unrated
Authenticate to the LineLeader Enroll API using JWT plus refresh-token flow for a long-running integration
apidocs.childcarecrm.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans