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