POST api/OTP?isWeb={isWeb}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isWeb | boolean |
Required |
Body Parameters
OTPDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| GUID | globally unique identifier |
None. |
|
| Mobile | string |
None. |
|
| string |
None. |
||
| OTP | integer |
None. |
|
| OTP_Encrypted | string |
None. |
|
| ExpiryInMinutes | integer |
None. |
|
| ExpiryDate | date |
None. |
|
| IsValidated | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"GUID": "ff6c4fdc-4bcc-4d86-8cad-e0c8104a2c96",
"Mobile": "sample string 3",
"Email": "sample string 4",
"OTP": 5,
"OTP_Encrypted": "sample string 7",
"ExpiryInMinutes": 1,
"ExpiryDate": "2026-11-05T11:41:54.1383836+00:00",
"IsValidated": true
}
text/xml
Sample:
<OTPDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Timepeaker.WebApi.DTO">
<Email>sample string 4</Email>
<ExpiryDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-11-05T11:41:54.1383836Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</ExpiryDate>
<ExpiryInMinutes>1</ExpiryInMinutes>
<GUID>ff6c4fdc-4bcc-4d86-8cad-e0c8104a2c96</GUID>
<ID>1</ID>
<IsLicenceSpecific>true</IsLicenceSpecific>
<IsValidated>true</IsValidated>
<LicenceKey>0eaa2387-ec73-4b7c-8c73-f184c14f7e5a</LicenceKey>
<Mobile>sample string 3</Mobile>
<OTP>5</OTP>
<OTP_Clear>6</OTP_Clear>
<OTP_Encrypted>sample string 7</OTP_Encrypted>
<ValidateConsumerEmail>true</ValidateConsumerEmail>
</OTPDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OTPResultDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful | boolean |
None. |
|
| IsExpired | boolean |
None. |
|
| OTPObject | OTPDTO |
None. |
|
| ConsumerGUID | globally unique identifier |
None. |
|
| string |
None. |
||
| OTP_GUID | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"IsExpired": true,
"OTPObject": {
"GUID": "9db58707-e547-45d8-80db-6b9f0c21798d",
"Mobile": "sample string 3",
"Email": "sample string 4",
"OTP": 5,
"OTP_Encrypted": "sample string 7",
"ExpiryInMinutes": 1,
"ExpiryDate": "2026-11-05T11:41:54.1383836+00:00",
"IsValidated": true
},
"ConsumerGUID": "4f929d6d-3cbe-4360-a053-848a8a70a33f",
"Email": "sample string 3",
"OTP_GUID": "e2632d92-96c1-4d94-b4a6-af27137bd340"
}
text/xml
Sample:
<OTPResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Timepeaker.WebApi.DTO">
<ConsumerGUID>4f929d6d-3cbe-4360-a053-848a8a70a33f</ConsumerGUID>
<Email>sample string 3</Email>
<IsExpired>true</IsExpired>
<IsSuccessful>true</IsSuccessful>
<OTPObject>
<Email>sample string 4</Email>
<ExpiryDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2026-11-05T11:41:54.1383836Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</ExpiryDate>
<ExpiryInMinutes>1</ExpiryInMinutes>
<GUID>9db58707-e547-45d8-80db-6b9f0c21798d</GUID>
<ID>1</ID>
<IsLicenceSpecific>true</IsLicenceSpecific>
<IsValidated>true</IsValidated>
<LicenceKey>c6b6ee88-7649-4865-bf59-78b0c42ec0e7</LicenceKey>
<Mobile>sample string 3</Mobile>
<OTP>5</OTP>
<OTP_Clear>6</OTP_Clear>
<OTP_Encrypted>sample string 7</OTP_Encrypted>
<ValidateConsumerEmail>true</ValidateConsumerEmail>
</OTPObject>
<OTP_GUID>e2632d92-96c1-4d94-b4a6-af27137bd340</OTP_GUID>
</OTPResultDTO>