SDK reference · Node SDK
prov.attest.devices.list
prov.attest.devices.list in Node SDK. The devices enrolled in your key's carrier.
Signature
prov.attest.devices.list(params?: ListDevicesParams): Promise<ListResponse<DeviceRecord>>Parameters
paramsListDevicesParams
Request fields
revokedbooleanquerytruefor revoked devices only,falsefor active devices only. Leave it out for both.carrier_idstringquery- Your key's own carrier. Any other carrier is refused with
parameter_invalid. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
Promise<ListResponse<DeviceRecord>> The devices enrolled in your carrier.
HTTP operation
GET /v1/attest/devices: List your devices
Errors
Example
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/devices`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "platform": "ios" }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/devices`, {
headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/attest/devices", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}, json={
"platform": "ios"
}).json()
data = httpx.get(f"{api}/v1/attest/devices", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}).json()