SDK reference · Node SDK
prov.mandate.deviceEnrolments
prov.mandate.deviceEnrolments in the Node SDK: 4 methods. The mandate.deviceEnrolments methods.
Methods
create
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
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
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
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.