App attestation lets a server check that a request comes from a genuine, unmodified copy of its mobile app running on a real device, not from a script, emulator or tampered build. The platform vendor vouches for the app and device in a signed statement that the server verifies.
It matters most for mobile APIs. Without it, a bot can call the same API the app uses with a plain HTTP client, and no client-side detection ever runs.
How it works
The two main platform services:
- Play Integrity API on Android. The app requests an integrity token, and the server reads verdicts from it:
appIntegrity(is this the binary Google Play recognizes),accountDetails(was it installed or paid for through Play) anddeviceIntegrity, with labels fromMEETS_BASIC_INTEGRITYup toMEETS_STRONG_INTEGRITY. It replaced the SafetyNet Attestation API. - App Attest on Apple platforms, part of the DeviceCheck framework. The app creates a key in the Secure Enclave and asks Apple to attest it. The server verifies the attestation once, then checks signed assertions on sensitive requests.
In both, the server should bind each check to the request with a nonce or request hash, so a verdict can’t be replayed. Verification has to happen on the server, because a compromised app can fake its own checks.
Limits
Attestation proves the app and device are genuine, not that a person is using them. Attackers can generate valid verdicts on real devices and hand them to bots, a pattern Google’s own documentation describes. Not every device reaches the highest integrity tier, and App Attest keys don’t survive reinstalling the app. Treat attestation as a strong signal within device intelligence and bot management, not as a gate on its own.
Compare options in the mobile app and API bot protection rankings.