SDK reference · Node SDK
prov.attest.devices
prov.attest.devices in the Node SDK: 4 methods. The attest.devices methods.
Methods
list
prov.attest.devices.list(params?: ListDevicesParams): Promise<ListResponse<DeviceRecord>>The devices enrolled in your key's carrier.
Calls GET /v1/attest/devices.
enrollmentChallenge
prov.attest.devices.enrollmentChallenge(): Promise<EnrollmentChallenge>A challenge for the key attestation of a phone about to enroll (single use, short-lived).
Calls POST /v1/attest/devices/enrollment_challenge.
enroll
prov.attest.devices.enroll(params?: EnrollParams): Promise<DeviceRecord>Enrolls a phone in your key's carrier; the server assigns its hardware tier.
Calls POST /v1/attest/devices.
revoke
prov.attest.devices.revoke(deviceId: string, params: RevokeParams): Promise<DeviceRecord>Revokes a device in your key's carrier.
Calls POST /v1/attest/devices/{id}/revoke.