# prov.mandate.deviceEnrolments

prov.mandate.deviceEnrolments in the Node SDK: 4 methods. The mandate.deviceEnrolments methods.

## Methods

### [create](https://provenanceauth.com/docs/sdks/node/mandate-device-enrolments/create.md)

```ts
prov.mandate.deviceEnrolments.create(params: CreateDeviceEnrollmentParams): Promise<CreatedDeviceEnrollment>
```

`POST /v1/mandate/device_enrollments`: a link for one person to enroll their phone with a passkey.

Calls `POST /v1/mandate/device_enrollments`.

### [get](https://provenanceauth.com/docs/sdks/node/mandate-device-enrolments/get.md)

```ts
prov.mandate.deviceEnrolments.get(id: string): Promise<DeviceEnrollment>
```

`GET /v1/mandate/device_enrollments/:id`: the state and, once enrolled, `deviceId`.

Calls `GET /v1/mandate/device_enrollments/{id}`.

### [list](https://provenanceauth.com/docs/sdks/node/mandate-device-enrolments/list.md)

```ts
prov.mandate.deviceEnrolments.list(params?: ListDeviceEnrollmentsParams): Promise<ListResponse<DeviceEnrollment>>
```

`GET /v1/mandate/device_enrollments`: this account's enrollments, newest first.

Calls `GET /v1/mandate/device_enrollments`.

### [revoke](https://provenanceauth.com/docs/sdks/node/mandate-device-enrolments/revoke.md)

```ts
prov.mandate.deviceEnrolments.revoke(id: string): Promise<DeviceEnrollment>
```

`POST /v1/mandate/device_enrollments/:id/revoke`: the link stops working and the device it enrolled is revoked.

Calls `POST /v1/mandate/device_enrollments/{id}/revoke`.
