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.
curl \
-H "Authorization: Bearer $ACCESS_TOKEN" \
https://playintegrity.googleapis.com/v1/{packageName}:decodeIntegrityToken