# prov.attest.devices

prov.attest.devices in the Python SDK: 4 methods. The attest.devices methods.

## Methods

### [enrollment_challenge](https://provenanceauth.com/docs/sdks/python/attest-devices/enrollment-challenge.md)

```python
prov.attest.devices.enrollment_challenge() -> Any
```

A single-use challenge for a phone's key attestation before it enrolls.

Calls `POST /v1/attest/devices/enrollment_challenge`.

### [enroll](https://provenanceauth.com/docs/sdks/python/attest-devices/enroll.md)

```python
prov.attest.devices.enroll(**body: Any = …) -> Any
```

Enrolls a phone in your key's own carrier; the server assigns its hardware tier.

Calls `POST /v1/attest/devices`.

### [list](https://provenanceauth.com/docs/sdks/python/attest-devices/list.md)

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

The devices enrolled in your key's carrier.

Calls `GET /v1/attest/devices`.

### [revoke](https://provenanceauth.com/docs/sdks/python/attest-devices/revoke.md)

```python
prov.attest.devices.revoke(device_id: str, reason: Optional[str] = …) -> Any
```

Revokes a device in your key's carrier.

Calls `POST /v1/attest/devices/{id}/revoke`.
