API reference

Request an attestation challenge

Issue a one-time, five-minute challenge that the Android SDK has the device keystore attest to, proving the report is fresh.

POST/api/v1/attestation/challenge Public key

Issues a random challenge bound to your organization and SDK key. The Android SDK requests one before collecting, has the device's hardware keystore attest to it, and includes the attestation in its identify request. The server checks it and consumes the challenge, so an attestation cannot be replayed.

The request has no body.

Response

  • challengestring
    32 random bytes, base64-encoded.
  • expires_atstring
    When the challenge stops being accepted: five minutes after it was issued.

Each challenge can be used once. Challenges are free.

Errors

StatusCodeWhen
401unauthorizedThe key did not authenticate.
503service_unavailableA challenge could not be issued just now.