View as Markdown

SDK reference · Node SDK

prov.attest.devices.enrollmentChallenge

prov.attest.devices.enrollmentChallenge in Node SDK. A challenge for the key attestation of a phone about to enroll (single use, short-lived).

Signature

prov.attest.devices.enrollmentChallenge(): Promise<EnrollmentChallenge>

Parameters

No parameters.

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).

Returns

Promise<EnrollmentChallenge> 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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.