Devices with a status of ACTIVATION_REQUIRED are activated using a valid one-time password (OTP). The OTP is sent to the phone number or email address specified in the device resource’s properties.

The sample shows the POST /environments/{environmentId}/users/{userId}/devices/{deviceId} operation to activate the device specified in the request URL. This operation uses the application/vnd.pingidentity.device.activate+json custom content type in the request header to specify the activation action.

When the activation action is completed successfully, the response returns a 200 OK message and the device status property is changed to ACTIVE.