SDK reference · Python SDK

prov.attest.devices.list

prov.attest.devices.list in Python SDK. The devices enrolled in your key's carrier.

Signature

prov.attest.devices.list(revoked: Optional[bool] = …, limit: Optional[int] = …, cursor: Optional[str] = …) -> Any

Parameters

revokedOptional[bool]
limitOptional[int]
cursorOptional[str]

Request fields

revokedbooleanquery
true for revoked devices only, false for 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_cursor back to get the next page.

Returns

Any 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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.