Google

Google Play Integrity API

The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play…

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.

Endpoints 3

deviceRecall

  • POSTWrites recall bits for the device where Play Integrity API token is obtained/v1/:packageName/deviceRecall:writeWrites recall bits for the device where Play Integrity API token is obtained. The endpoint is available to select Play partners in an early access program…

v1

  • POSTDecodes the integrity token and returns the token payload./v1/:packageName:decodeIntegrityTokenDecodes the integrity token and returns the token payload.
  • POSTDecodes the PC integrity token and returns the PC token payload./v1/:packageName:decodePcIntegrityTokenDecodes the PC integrity token and returns the PC token payload.

API details

Base URL
https://playintegrity.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter
Operations
3 operations on 3 pathsPOST 3
Main resources
v1 2deviceRecall 1
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the Google Play Integrity API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Google Play Integrity API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Writes recall bits for the device where Play Integrity API token is obtained” (POST /v1/:packageName/deviceRecall:write), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Google Play Integrity API?

The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play… It is listed under Developer tools and has 3 endpoints.

Who publishes the Google Play Integrity API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Google Play Integrity API?

Requests go to https://playintegrity.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Google Play Integrity API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.

How many endpoints does the Google Play Integrity API have?

3 operations on 3 paths (3 POST). The largest groups are v1, deviceRecall.

Is forking the Google Play Integrity API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.