Skip to main content
POST
/
logins
/
twoFactorAuth
/
getCode
Get TOTP code
curl --request POST \
  --url https://api.kaizenautomation.com/logins/twoFactorAuth/getCode \
  --header 'Content-Type: application/json' \
  --data '{
  "loginId": "<string>"
}'
{
  "code": "<string>",
  "secondsRemaining": 123
}

Body

application/json

Login ID to get TOTP code for

loginId
string
required

External ID of the login to get TOTP code for

Response

TOTP code retrieved successfully

code
string
required

The current TOTP code

secondsRemaining
number
required

Seconds until the next TOTP code is generated

I