Validate One-Time Password

The /Authentication/OTP/Validate endpoint allows the user to send their One-Time Password (OTP) for validation. The user must provide the OTP along with any additional required information, such as username or deviceId. The server will verify the provided OTP against the expected value and check for expiration or other constraints. If the OTP is valid, the server will return a success message, allowing the user to proceed with MFA. In case of errors, such as invalid or expired OTP, appropriate error codes and messages will be provided.

SecurityApiKeyAuth
Request
header Parameters
IV
required
string

Initialization Vector for database encryption.

Request Body schema:
One of:

Object with items required to reset one-time password.

object
username
string (Username)

An string containing the user's login credential, which is either the user's primary emailAddress or primary phoneNumber.

deviceId
string (DeviceId)

The unique identifier for the device.

oneTimePassword
string (Otp)

One time password for multi-factor and mobile login.

Responses
200

Login successful

400

Bad Request

401

Unauthorized access

403

Access forbidden

404

Resource was not found

409

Conflict.

429

Too Many Requests

post/authentication/otp/validation
Request samples
{
  • "login": {
    }
}
Response samples
{
  • "loginDetails": {
    }
}
Copyright © Pace Software 2021–2023. All rights reserved.