Create a service account

The APIs explorer allows you to call Android Management API directly. To call the API from a server, you need to enable Android Management API for your project and create a service account.

Enable the Android Management API

Enable the Android Management API for your project.

  1. Sign in to the Google API Console.
  2. Select or create a project.
    Go to the Projects Page
  3. Click Enable API.
  4. Search for and select Android Management API in the API library.
    Go to the API Library Page
  5. Click Enable.

Create your service account

  1. Sign in to the Google API Console.
  2. Open the Credentials page. If prompted, select the project that has the Android Management API enabled.
  3. Click Create credentials > Service account key.
  4. From the dropdown menu, select New service account. Enter a name for your service account.
  5. Select your preferred key type and click Create. Your new public/private key pair is generated and downloaded to your machine and is the only copy of this key. You are responsible for storing it securely.
  6. (Optional, but highly recommended) Add additional project owners by granting the Owner role to existing project members.

Roles and permissions

To access the Android Management API your service account requires the androidmanagement.enterprises.manage permission, which can be granted by the roles/androidmanagement.user role.

Send feedback about...

Android Management API (beta)
Android Management API (beta)