Google Play Developer Google Play Integrity API V1 API

The Google Play Integrity API V1 API API from Google Play Developer — 2 operation(s) for google play integrity api v1 api.

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 /v1/{v1Id}:decodePcIntegrityToken Decode a PC integrity token · Decode pc integrity token v1 #
Ask an LLM
“How do I decode a PC integrity token from a desktop app?”
“What payload does a PC integrity token carry?”
Tell an agent
Decode PC integrity token {integrityToken} for {v1Id}.
Verify the PC token {integrityToken} on {v1Id}.
POST /v1/{v1Id}:decodeIntegrityToken Decode an integrity token · Decode integrity token v1 #
Ask an LLM
“How do I decode an integrity token from a mobile app?”
“Can I read the payload of an integrity token?”
Tell an agent
Decode integrity token {integrityToken} for {v1Id}.
Verify the app integrity token {integrityToken} on {v1Id}.

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-google-play-integrity-api-v1-api-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-google-play-integrity-api-v1-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Integrity API V1 API
  version: v1
  description: Generated from Google's published Discovery document for Google Play Integrity API (playintegrity v1, revision 20261110). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://playintegrity.googleapis.com
tags:
- name: Google Play Integrity API V1 API
paths:
  /v1/{v1Id}:decodePcIntegrityToken:
    post:
      operationId: playintegrity.decodePcIntegrityToken
      summary: Decode pc integrity token v1
      description: Decodes the PC integrity token and returns the PC token payload.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecodePcIntegrityTokenRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecodePcIntegrityTokenResponse'
        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/playintegrity
      - apiKey: []
      tags:
      - Google Play Integrity API V1 API
  /v1/{v1Id}:decodeIntegrityToken:
    post:
      operationId: playintegrity.decodeIntegrityToken
      summary: Decode integrity token v1
      description: Decodes the integrity token and returns the token payload.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecodeIntegrityTokenRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecodeIntegrityTokenResponse'
        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/playintegrity
      - apiKey: []
      tags:
      - Google Play Integrity API V1 API
components:
  schemas:
    EnvironmentDetails:
      description: Contains information about the environment Play Integrity API runs in, e.g. Play Protect verdict.
      type: object
      properties:
        locationSpoofingRiskVerdict:
          description: The evaluation of the Location Spoofing Risk verdict.
          items:
            type: string
            enum:
            - LOCATION_SPOOFING_RISK_VERDICT_UNSPECIFIED
            - LOW_RISK_DEVICE
            - LOW_RISK_NETWORK
            - MEDIUM_RISK_DEVICE
            - MEDIUM_RISK_NETWORK
            - HIGH_RISK_DEVICE
            - HIGH_RISK_NETWORK
          type: array
        appAccessRiskVerdict:
          $ref: '#/components/schemas/AppAccessRiskVerdict'
          description: The evaluation of the App Access Risk verdicts.
        playProtectVerdict:
          type: string
          enum:
          - PLAY_PROTECT_VERDICT_UNSPECIFIED
          - UNEVALUATED
          - NO_ISSUES
          - NO_DATA
          - MEDIUM_RISK
          - HIGH_RISK
          - POSSIBLE_RISK
          description: The evaluation of Play Protect verdict.
    TestingDetails:
      type: object
      description: Contains additional information generated for testing responses.
      properties:
        isTestingResponse:
          description: Required. Indicates that the information contained in this payload is a testing response that is statically overridden for a tester.
          type: boolean
    AppIntegrity:
      description: Contains the application integrity information.
      properties:
        certificateSha256Digest:
          type: array
          items:
            type: string
          description: The SHA256 hash of the requesting app's signing certificates (base64 web-safe encoded). Set iff app_recognition_verdict != UNEVALUATED.
        packageName:
          description: Package name of the application under attestation. Set iff app_recognition_verdict != UNEVALUATED.
          type: string
        appRecognitionVerdict:
          type: string
          enum:
          - UNKNOWN
          - PLAY_RECOGNIZED
          - UNRECOGNIZED_VERSION
          - UNEVALUATED
          description: Required. Details about the app recognition verdict
        versionCode:
          type: string
          format: int64
          description: Version code of the application. Set iff app_recognition_verdict != UNEVALUATED.
      type: object
    AccountActivity:
      description: (Restricted Access) Contains a signal helping apps differentiating between likely genuine and likely non-genuine user traffic.
      properties:
        activityLevel:
          description: Required. Indicates the activity level of the account.
          type: string
          enum:
          - ACTIVITY_LEVEL_UNSPECIFIED
          - UNEVALUATED
          - UNUSUAL
          - UNKNOWN
          - TYPICAL_BASIC
          - TYPICAL_STRONG
      type: object
      deprecated: true
    PcTestingDetails:
      type: object
      description: Contains additional information generated for testing responses.
      properties:
        isTestingResponse:
          description: Indicates that the information contained in this payload is a testing response that is statically overridden for a tester.
          type: boolean
    WriteDates:
      description: Contains the recall bits write dates.
      properties:
        yyyymmSecond:
          description: Optional. Write time in YYYYMM format (in UTC, e.g. 202402) for the second bit. Note that this value won't be set if the second bit is false.
          format: int32
          type: integer
        yyyymmThird:
          type: integer
          format: int32
          description: Optional. Write time in YYYYMM format (in UTC, e.g. 202402) for the third bit. Note that this value won't be set if the third bit is false.
        yyyymmFirst:
          type: integer
          format: int32
          description: Optional. Write time in YYYYMM format (in UTC, e.g. 202402) for the first bit. Note that this value won't be set if the first bit is false.
      type: object
    DeviceAttributes:
      type: object
      properties:
        sdkVersion:
          description: 'Android SDK version of the device, as defined in the public Android documentation: https://developer.android.com/reference/android/os/Build.VERSION_CODES. It won''t be set if a necessary requirement was missed. For example DeviceIntegrity did not meet the minimum bar.'
          format: int32
          type: integer
      description: Contains information about the device for which the integrity token was generated, e.g. Android SDK version.
    TokenPayloadExternal:
      properties:
        accountDetails:
          $ref: '#/components/schemas/AccountDetails'
          description: Required. Details about the Play Store account.
        requestDetails:
          $ref: '#/components/schemas/RequestDetails'
          description: Required. Details about the integrity request.
        deviceIntegrity:
          $ref: '#/components/schemas/DeviceIntegrity'
          description: Required. Details about the device integrity.
        testingDetails:
          $ref: '#/components/schemas/TestingDetails'
          description: Indicates that this payload is generated for testing purposes and contains any additional data that is linked with testing status.
        environmentDetails:
          $ref: '#/components/schemas/EnvironmentDetails'
          description: Details of the environment Play Integrity API runs in.
        appIntegrity:
          $ref: '#/components/schemas/AppIntegrity'
          description: Required. Details about the application integrity.
      description: Contains basic app information and integrity signals like device attestation and licensing details.
      type: object
    AccountDetails:
      properties:
        appLicensingVerdict:
          type: string
          enum:
          - UNKNOWN
          - LICENSED
          - UNLICENSED
          - UNEVALUATED
          description: Required. Details about the licensing status of the user for the app in the scope.
        accountActivity:
          $ref: '#/components/schemas/AccountActivity'
          description: (Restricted Access) Details about the account activity for the user in the scope.
      type: object
      description: Contains the account information such as the licensing status for the user in the scope.
    RecentDeviceActivity:
      description: Recent device activity can help developers identify devices that have exhibited hyperactive attestation activity, which could be a sign of an attack or token farming.
      properties:
        deviceActivityLevel:
          description: Required. Indicates the activity level of the device.
          type: string
          enum:
          - DEVICE_ACTIVITY_LEVEL_UNSPECIFIED
          - UNEVALUATED
          - LEVEL_1
          - LEVEL_2
          - LEVEL_3
          - LEVEL_4
      type: object
    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
    RequestDetails:
      description: Contains the integrity request information.
      properties:
        nonce:
          description: Nonce that was provided in the request (which is base64 web-safe no-wrap).
          type: string
        requestPackageName:
          description: 'Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity. For details on application integrity, check application_integrity.'
          type: string
        timestampMillis:
          type: string
          description: Required. Timestamp, in milliseconds, of the integrity application request.
          format: int64
        requestHash:
          type: string
          description: Request hash that was provided in the request.
      type: object
    DeviceRecall:
      properties:
        values:
          $ref: '#/components/schemas/Values'
          description: Required. Contains the recall bits values.
        writeDates:
          $ref: '#/components/schemas/WriteDates'
          description: Required. Contains the recall bits write dates.
      type: object
      description: Contains the recall bits per device set by the developer.
    PcRequestDetails:
      properties:
        requestHash:
          type: string
          description: Request hash that was provided in the request.
        requestTime:
          description: Required. Timestamp, of the integrity application request.
          type: string
          format: google-datetime
        requestPackageName:
          type: string
          description: 'Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity.'
      type: object
      description: Contains the integrity request information.
    DecodeIntegrityTokenRequest:
      description: Request to decode the integrity token.
      type: object
      properties:
        integrityToken:
          type: string
          description: Encoded integrity token.
    AppAccessRiskVerdict:
      type: object
      properties:
        appsDetected:
          type: array
          description: List of detected app types signalled for App Access Risk.
          items:
            type: string
            enum:
            - APPS_DETECTED_UNSPECIFIED
            - KNOWN_INSTALLED
            - KNOWN_CAPTURING
            - KNOWN_OVERLAYS
            - KNOWN_CONTROLLING
            - UNKNOWN_INSTALLED
            - UNKNOWN_CAPTURING
            - UNKNOWN_OVERLAYS
            - UNKNOWN_CONTROLLING
      description: Contains signals about others apps on the device which could be used to access or control the requesting app.
    DecodePcIntegrityTokenRequest:
      type: object
      description: Request to decode the PC integrity token.
      properties:
        integrityToken:
          type: string
          description: Encoded integrity token.
    PcTokenPayloadExternal:
      type: object
      properties:
        deviceIntegrity:
          $ref: '#/components/schemas/PcDeviceIntegrity'
          description: Required. Details about the device integrity.
        requestDetails:
          $ref: '#/components/schemas/PcRequestDetails'
          description: Required. Details about the integrity request.
        accountDetails:
          $ref: '#/components/schemas/PcAccountDetails'
          description: Details about the account information such as the licensing status.
        testingDetails:
          $ref: '#/components/schemas/PcTestingDetails'
          description: Indicates that this payload is generated for testing purposes and contains any additional data that is linked with testing status.
      description: Contains PC device attestation details.
    DeviceIntegrity:
      properties:
        legacyDeviceRecognitionVerdict:
          type: array
          description: Contains legacy details about the integrity of the device the app is running on. Only for devices with Android version T or higher and only for apps opted in to the new verdicts. Only available during the transition period to the new verdicts system and will be removed afterwards.
          items:
            type: string
            enum:
            - UNKNOWN
            - MEETS_BASIC_INTEGRITY
            - MEETS_DEVICE_INTEGRITY
            - MEETS_STRONG_INTEGRITY
            - MEETS_VIRTUAL_INTEGRITY
        deviceAttributes:
          $ref: '#/components/schemas/DeviceAttributes'
          description: Attributes of the device where the integrity token was generated.
        recentDeviceActivity:
          $ref: '#/components/schemas/RecentDeviceActivity'
          description: Details about the device activity of the device the app is running on.
        deviceRecognitionVerdict:
          description: Details about the integrity of the device the app is running on.
          type: array
          items:
            type: string
            enum:
            - UNKNOWN
            - MEETS_BASIC_INTEGRITY
            - MEETS_DEVICE_INTEGRITY
            - MEETS_STRONG_INTEGRITY
            - MEETS_VIRTUAL_INTEGRITY
        deviceRecall:
          $ref: '#/components/schemas/DeviceRecall'
          description: Details about the device recall bits set by the developer.
      description: Contains the device attestation information.
      type: object
    DecodeIntegrityTokenResponse:
      properties:
        tokenPayloadExternal:
          $ref: '#/components/schemas/TokenPayloadExternal'
          description: Plain token payload generated from the decoded integrity token.
      description: Response containing the decoded integrity payload.
      type: object
    PcAccountDetails:
      type: object
      properties:
        appLicensingVerdict:
          description: Required. Details about the licensing status of the user for the app in the scope.
          type: string
          enum:
          - UNKNOWN
          - LICENSED
          - UNLICENSED
          - UNEVALUATED
      description: Contains the account information such as the licensing status for the user in the scope.
    DecodePcIntegrityTokenResponse:
      type: object
      properties:
        tokenPayloadExternal:
          $ref: '#/components/schemas/PcTokenPayloadExternal'
          description: Plain token payload generated from the decoded integrity token.
      description: Response containing the decoded PC integrity payload.
    PcDeviceIntegrity:
      type: object
      properties:
        deviceRecognitionVerdict:
          items:
            type: string
            enum:
            - DEVICE_RECOGNITION_VERDICT_UNSPECIFIED
            - MEETS_PC_INTEGRITY
          type: array
          description: Details about the integrity of the device the app is running on.
      description: Contains the device attestation information.
    Values:
      description: Contains the recall bits values.
      type: object
      properties:
        bitFirst:
          type: boolean
          description: Required. First recall bit value.
        bitThird:
          type: boolean
          description: Required. Third recall bit value.
        bitSecond:
          description: Required. Second recall bit value.
          type: boolean
  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/playintegrity: 'Private Service: https://www.googleapis.com/auth/playintegrity'
externalDocs:
  url: https://developer.android.com/google/play/integrity
x-provenance:
  method: harvested
  publisher: Google
  source: https://playintegrity.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)