Google Play Developer Appsigning API

The Appsigning API from Google Play Developer — 2 operation(s) for appsigning.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /androidpublisher/v3/applications/{name}/appSigning:enrollApp Enroll an app in Play App Signing with a KMS key · Enroll app appsigning #
Ask an LLM
“How do I enroll an app in Play App Signing using a self-hosted Google Cloud KMS key?”
“Can I enroll an existing app in Play Signing with my own key?”
Tell an agent
Enroll app {name} in Play App Signing with a new KMS key.
Enroll app {name} in Play Signing using upload certificate {pemUploadCertificate}.
POST /androidpublisher/v3/applications/{name}/appSigning:rotateAppSigningKey Rotate an app's signing key to a new KMS key · Rotate app signing key appsigning #
Ask an LLM
“How do I rotate an app's signing key to a new self-hosted KMS key?”
“What proof do I need to rotate an app's signing key?”
Tell an agent
Rotate the signing key of app {name} to {rotatedCloudKmsKey} because {keyRotationReason}.
Rotate app {name}'s signing key for reason {keyRotationReason}.

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-play:google-play-appsigning-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-play-appsigning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Android Developer Appsigning API
  version: v3
  description: Generated from Google's published Discovery document for Google Play Android Developer API (androidpublisher v3, revision 20261111). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://androidpublisher.googleapis.com
tags:
- name: Appsigning
paths:
  /androidpublisher/v3/applications/{name}/appSigning:enrollApp:
    post:
      operationId: androidpublisher.appsigning.enrollApp
      summary: Enroll app appsigning
      description: 'Enrolls an app in Play App Signing using a self-hosted Google Cloud KMS key. Warning: Do not use this method for standard Play App Signing enrollment. * Standard enrollment with Google-generated or Google-managed keys cannot be done via API. * This advanced API is strictly for enterprise organizations with mandatory compliance, regulatory, or policy requirements to retain key custody in an external Google Cloud KMS instance. * Prerequisites: Requires an active, properly configured Google Cloud KMS key with appropriate IAM permissions granted to Google Play before calling this method. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756'
      parameters:
      - name: name
        in: path
        required: true
        description: Required. Either package name or app ID of the app enrolling in Play Signing.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnrollAppRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollAppResponse'
        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/androidpublisher
      - apiKey: []
      tags:
      - Appsigning
  /androidpublisher/v3/applications/{name}/appSigning:rotateAppSigningKey:
    post:
      operationId: androidpublisher.appsigning.rotateAppSigningKey
      summary: Rotate app signing key appsigning
      description: 'Rotates an app''s signing key to a new self-hosted Google Cloud KMS key. Warning: This method only applies to apps enrolled with self-hosted Cloud KMS keys. For apps using standard Google-managed Play App Signing, key rotation requests must be initiated through the Google Play Console UI. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756'
      parameters:
      - name: name
        in: path
        required: true
        description: Required. Either package name or app ID of the app rotating the signing key.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateAppSigningKeyRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateAppSigningKeyResponse'
        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/androidpublisher
      - apiKey: []
      tags:
      - Appsigning
components:
  schemas:
    CloudKmsKeyAndCert:
      properties:
        pemCertificate:
          format: byte
          type: string
          description: Required. Certificate associated with the key. The bytes must contain the certificate in PEM format.
        cloudKmsKey:
          $ref: '#/components/schemas/CloudKmsKey'
          description: Required. Cloud KMS key.
      description: Cloud KMS key and the certificate associated with the key.
      type: object
    EnrollAppResponse:
      properties:
        signingCertificate:
          $ref: '#/components/schemas/CertificateHashes'
          description: The signing certificate hashes for the app. Always set.
        uploadCertificate:
          $ref: '#/components/schemas/CertificateHashes'
          description: The upload certificate hashes for the app. Set iff pem_upload_certificate was set in the request.
      description: Response to enroll an app into Play signing.
      type: object
    EnrollAppRequest:
      properties:
        enrollNewApp:
          $ref: '#/components/schemas/EnrollNewApp'
          description: Changes the signing key of a new app to an external Cloud KMS key. The app must not have published to Open testing or Production tracks.
        pemUploadCertificate:
          type: string
          format: byte
          description: The certificate associated with the upload key, in PEM format.
        enrollExistingApp:
          $ref: '#/components/schemas/EnrollExistingApp'
          description: Enrolls an existing app into Play signing using an external Cloud KMS key.
      description: Request to enroll an app into Play App Signing using a self-hosted Cloud KMS key.
      type: object
    RotatedCloudKmsKey:
      type: object
      description: Message representing rotated Cloud KMS key. Consists of the Cloud KMS key and its associated proof of rotation.
      properties:
        signingCertificateLineage:
          description: Required. Proof-of-rotation. See [creating signing certificate lineages](https://developer.android.com/studio/command-line/apksigner#rotate_signing_keys_2).
          type: string
          format: byte
        cloudKmsKeyAndCert:
          $ref: '#/components/schemas/CloudKmsKeyAndCert'
          description: Required. Cloud KMS key and the certificate associated with the key.
    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
    RotateAppSigningKeyResponse:
      type: object
      properties:
        rotatedKeyCertificate:
          $ref: '#/components/schemas/CertificateHashes'
          description: The rotated key certificate hashes for the app. Always set.
      description: Response to rotate an app's signing key.
    RotateAppSigningKeyRequest:
      description: Request to rotate an app's signing key.
      properties:
        keyRotationReason:
          type: string
          enum:
          - KEY_ROTATION_REASON_UNSPECIFIED
          - COMPROMISED_KEY
          - USE_STRONGER_KEY
          - USE_SAME_KEY_FOR_MULTIPLE_APPS
          - ROUTINE_KEY_UPGRADE
          - OTHER
          description: Required. Reason for rotating the app key.
        rotatedCloudKmsKey:
          $ref: '#/components/schemas/RotatedCloudKmsKey'
          description: Required. Self-hosted Cloud KMS key.
      type: object
    CertificateHashes:
      type: object
      properties:
        certificateHashSha256:
          description: 'Hex-encoded SHA256 hash of the certificate. example: `94:49:C7:F3:A9:3C:F0:C5:5A:67:5D:DF:1C:83:73:2D:87:D5:62:55:E7:0B:15:0D:9E:6F:3C:F8:63:BB:7F:C1`'
          type: string
        certificateHashMd5:
          description: 'Hex-encoded MD5 hash of the certificate. example: `43:51:43:A1:B5:FC:8B:B7:0A:3A:A9:B1:0F:66:73:A8`'
          type: string
        certificateHashSha1:
          type: string
          description: 'Hex-encoded SHA1 hash of the certificate. example: `86:61:97:1A:D5:EF:E5:74:1E:A7:5B:84:7C:68:37:65:CD:94:16:DE`'
      description: Hash digests of a certificate.
    CloudKmsKey:
      type: object
      description: Reference to a private key hosted in developer-managed Google Cloud KMS.
      properties:
        cryptoKeyVersionResource:
          type: string
          description: 'Required. Resource identifier of the private key hosted in Google Cloud KMS. The Google Play service account must be granted Decrypt and Sign permissions on this resource. Format: projects//locations//keyRings//cryptoKeys//cryptoKeyVersions/'
    EnrollNewApp:
      type: object
      description: Enroll a new app into Play signing.
      properties:
        cloudKmsKeyAndCert:
          $ref: '#/components/schemas/CloudKmsKeyAndCert'
          description: Required. Self-hosted key. Once enrolled, this key will be used to sign your app.
    EnrollExistingApp:
      type: object
      description: Enroll an existing app into Play signing.
      properties:
        cloudKmsKey:
          $ref: '#/components/schemas/CloudKmsKey'
          description: Required. Self-hosted key. Once enrolled, this key will be used to sign your app.
  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/androidpublisher: View and manage your Google Play Developer account
externalDocs:
  url: https://developers.google.com/android-publisher
x-provenance:
  method: harvested
  publisher: Google
  source: https://androidpublisher.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)