Google Android Serviceaccountkeys API

The Serviceaccountkeys API from Google Android — 2 operation(s) for serviceaccountkeys.

GitHub OpenAPI

Operations 3

POST /androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys Insert serviceaccountkeys #
GET /androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys List serviceaccountkeys #
DELETE /androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId} Delete serviceaccountkeys #

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-android:google-android-serviceaccountkeys-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-android-serviceaccountkeys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play EMM Serviceaccountkeys API
  version: v1
  description: Generated from Google's published Discovery document for Google Play EMM API (androidenterprise v1, revision 20261110). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://androidenterprise.googleapis.com
tags:
- name: Serviceaccountkeys
paths:
  /androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys:
    post:
      operationId: androidenterprise.serviceaccountkeys.insert
      summary: Insert serviceaccountkeys
      description: Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.
      parameters:
      - name: enterpriseId
        in: path
        required: true
        description: The ID of the enterprise.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceAccountKey'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceAccountKey'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidenterprise
      - apiKey: []
      deprecated: true
      tags:
      - Serviceaccountkeys
    get:
      operationId: androidenterprise.serviceaccountkeys.list
      summary: List serviceaccountkeys
      description: Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
      parameters:
      - name: enterpriseId
        in: path
        required: true
        description: The ID of the enterprise.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceAccountKeysListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidenterprise
      - apiKey: []
      deprecated: true
      tags:
      - Serviceaccountkeys
  /androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}:
    delete:
      operationId: androidenterprise.serviceaccountkeys.delete
      summary: Delete serviceaccountkeys
      description: Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
      parameters:
      - name: enterpriseId
        in: path
        required: true
        description: The ID of the enterprise.
        schema:
          type: string
      - name: keyId
        in: path
        required: true
        description: The ID of the key.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidenterprise
      - apiKey: []
      deprecated: true
      tags:
      - Serviceaccountkeys
components:
  schemas:
    ServiceAccountKey:
      description: ' *Deprecated:* New integrations cannot use this method and can refer to our new recommendations '
      properties:
        type:
          type: string
          description: The file format of the generated key data.
          enum:
          - googleCredentials
          - pkcs12
        data:
          type: string
          description: The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google. When type is "pkcs12", the contents of the data field is base64 encoded and has the password "notasecret".
        publicData:
          type: string
          description: Public key data for the credentials file. This is an X.509 cert. If you are using the googleCredentials key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file.
        id:
          description: An opaque, unique identifier for this ServiceAccountKey. Assigned by the server.
          type: string
      type: object
    ServiceAccountKeysListResponse:
      type: object
      properties:
        serviceAccountKey:
          type: array
          items:
            $ref: '#/components/schemas/ServiceAccountKey'
          description: The service account credentials.
      deprecated: true
    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
  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/androidenterprise: Manage corporate Android devices
externalDocs:
  url: https://developers.google.com/android/work/play/emm-api
x-provenance:
  method: harvested
  publisher: Google
  source: https://androidenterprise.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)