Retrieving a One Time Password ​
GET /winapi/onetimepassword
You can retrieve the One Time Password of a Password record, with a simple GET request.
Powershell
# PowerShell Request
$PasswordstateUrl = 'https://passwordstate/winapi/onetimepassword/<PasswordID>'
Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -UseDefaultCredentialsJson
# Response
HTTP/1.1 200
[
{
"OTP": "839117"
}
]