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