Creates and returns an OTP
POST/api/web/v1/otps
Create and return an OTP. Caller requires the OTPS:ADD permission.
Request
- application/json
Body
required
Array [
]
Unique identifier of the Identity as a Service Authentication API application
Provided client IP address.
Whether to deliver the OTP. If not specified, this defaults to true.
Possible values: [EMAIL
, SMS
, VOICE
]
Defines how a user receives their one-time passcode (Email, Text message (SMS), or Voice message (VOICE)).
Whether to return the OTP. If not specified, this defaults to false.
transactionDetails
object[]
Defines transaction details to be associated with the OTP.
The transaction detail name.
Possible values: [RBA
, TVS
]
The transaction detail value.
User ID (containing the user ID or a user alias) of the Identity as a Service user the OTP is being created for.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful
- application/json
- Schema
- Example (from schema)
Schema
The authorization token expiry time.
The OTP.
Possible values: [EMAIL
, SMS
, VOICE
]
The OTP delivery type used. The value is null if OTP delivery was not performed
The OTP Expiry Date.
The authorization token representing the OTP authentication challenge to complete.
{
"exp": 0,
"otp": "string",
"otpDeliveryType": "EMAIL",
"otpExpiryDate": "2019-02-19T13:17:27Z",
"token": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Access denied
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}