POST api/account/validate

Request Information

URI Parameters

None.

Body Parameters

PreAuthenticationRequest
NameDescriptionTypeAdditional information
Username

string

None.

IsDomainUser

boolean

None.

BrowserAgent

string

None.

IpAddress

string

None.

DeviceID

string

None.

Origin

OriginApplication

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "IsDomainUser": true,
  "BrowserAgent": "sample string 3",
  "IpAddress": "sample string 4",
  "DeviceID": "sample string 5",
  "Origin": 0
}

application/xml, text/xml

Sample:
<PreAuthenticationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <BrowserAgent>sample string 3</BrowserAgent>
  <DeviceID>sample string 5</DeviceID>
  <IpAddress>sample string 4</IpAddress>
  <Origin>Web</Origin>
  <IsDomainUser>true</IsDomainUser>
  <Username>sample string 1</Username>
</PreAuthenticationRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PreAuthenticationRequest'.

Response Information

Resource Description

PreAuthResult
NameDescriptionTypeAdditional information
RequiredMFA

boolean

None.

SecuredOTPCode

string

None.

OTPGenerateTime

date

None.

OTPDuration

integer

None.

Error

boolean

None.

Remarks

string

None.

IsPublic

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "RequiredMFA": true,
  "SecuredOTPCode": "sample string 2",
  "OTPGenerateTime": "2025-10-26T11:08:19.9348842+08:00",
  "OTPDuration": 4,
  "Error": true,
  "Remarks": "sample string 6",
  "IsPublic": true
}

application/xml, text/xml

Sample:
<PreAuthResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <Error>true</Error>
  <IsPublic>true</IsPublic>
  <OTPDuration>4</OTPDuration>
  <OTPGenerateTime>2025-10-26T11:08:19.9348842+08:00</OTPGenerateTime>
  <Remarks>sample string 6</Remarks>
  <RequiredMFA>true</RequiredMFA>
  <SecuredOTPCode>sample string 2</SecuredOTPCode>
</PreAuthResult>