SDK reference · Python SDK
prov.attest.devices.enrollment_challenge
prov.attest.devices.enrollment_challenge in Python SDK. A single-use challenge for a phone's key attestation before it enrolls.
Signature
prov.attest.devices.enrollment_challenge() -> AnyParameters
No parameters.
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
Returns
Any A single-use challenge and when it expires.
HTTP operation
POST /v1/attest/devices/enrollment_challenge: Create an enrollment challenge for your device
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/devices/enrollment_challenge`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/devices/enrollment_challenge", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}).json()