Jump to content

Recommended Posts

Hello everyone,

i want to get the PasswordLIST ID from a PublicList, using the API.


    $PasswordstateUrl = 'https://server/api/searchpasswordlists/?PasswordList=test'
    Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{ "APIKey" = "myKey" }

But i always get the error:

Invoke-Restmethod : [{"errors":[{"message":"Invalid API Call"},{"phrase":"Error = Object reference not set to an instance of an object."}]}]

My Passwordstate looks like this:

<see attachments>


The APIKEY is from the Folder "test" (the Folder under Linux) and I want to get the PasswordListID From test (under Ansible-Test)




Link to post
Share on other sites

Hello Anton,


The API Key from a folder cannot be used to search for Password Lists - we've updating the wording in the latest release to make this a little bit more clear.

Instead you need to use the System Wide API Key, which is found on the screen Administration -> System Settings -> API

We hope this helps.


Click Studios

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...