Retrieving All Passwords in All Password Lists ​
GET /api/passwords
You can retrieve all Passwords in all Shared Password Lists by specifying the System Wide API Key, with a simple GET request - this is similar to the 'Export All Passwords' feature available in the Administration area of the Passwordstate website.
Note: By default, the retrieval of all Passwords records will add one Audit record for every Password record returned. If you wish to prevent audit records from being added, you can set the PreventAuditing parameter to true - if this parameter is omitted, the default option is false.
Powershell
# PowerShell Request
$PasswordstateUrl = 'https://passwordstate/api/passwords/?QueryAll&PreventAuditing=<value>'
Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{ "APIKey" = "<apikey>" }Json
# Response
[
{
"PasswordListID": 197,
"PasswordList": "Web Sites",
"TreePath": "\Customers\CustomerA",
"PasswordID": 46865,
"Title": "$25 Winners",
"UserName": "",
"Description": "Must be for a pool",
"GenericField1": "",
"GenericField2": "",
"GenericField3": "",
"GenericField4": "",
"GenericField5": "",
"GenericField6": "",
"GenericField7": "",
"GenericField8": "",
"GenericField9": "",
"GenericField10": "",
"GenericFieldInfo": [],
"AccountTypeID": 0,
"Notes": "",
"URL": "",
"Password": "q6xnfuW&B",
"ExpiryDate": "",
"AllowExport": true,
"OTP": "",
"OTPUri": ""
},
{
"PasswordListID": 197,
"PasswordList": "Web Sites",
"TreePath": "\Customers\CustomerA",
"PasswordID": 46903,
"Title": "atelerik",
"UserName": "useraccount1",
"Description": "Terlerik Login",
"GenericField1": "",
"GenericField2": "",
"GenericField3": "",
"GenericField4": "",
"GenericField5": "",
"GenericField6": "",
"GenericField7": "",
"GenericField8": "",
"GenericField9": "",
"GenericField10": "",
"GenericFieldInfo": [],
"AccountTypeID": 0,
"Notes": "",
"URL": "http://www.telerik.com",
"Password": "ZHn#3+A^yc",
"ExpiryDate": "",
"AllowExport": true,
"OTP": "",
"OTPUri": ""
},
...
]