Enrolling a user authentication device using the API
About this task
Application developers can use the API operations to enroll a user’s authentication device.
Steps
-
Use the following
POST
operation:POST https://api.pingone.com/v1/environments/{{envId}}/users/{{userId}}/devices
For details, see POST: CREATE MFA User Device (SMS), POST: CREATE MFA User Device (Email), or POST: CREATE MFA User Device (TOTP) in the API reference.
-
To complete pairing the device as an MFA authentication device with the user account, submit the OTP that was received in the notification, by using the following POST operation:
POST https://api.pingone.com/v1/environments/{{envId}}/users/{{userId}}/devices/{{deviceId}}
For details, see POST: Activate MFA User Device in the API reference.