I know this question already available but I am facing same issue. Please help me on it.
Python code
import requests
headers = { 'APIKey': "xxxxxx", 'Content-Type': 'application/json' }
uri = "https://pwd.xxxxx.co/api/passwords/"+str(xxxxx)+"?QueryAll"
response = requests.get(uri, headers=headers, verify=False)
response.content output: b'[{"errors":[{"message":"No Authorization"},{"phrase":"An error has occurred trying to validate the API Key for PasswordListID \'XXXX\'. Please check the PasswordListID and API Key values have been specified, and are correct."}]}]'
Also facing same issue in PowerShell script
>Powershell.exe .\passwordstate_api_call.ps1
Invoke-RestMethod :
[{"errors":[{"message":"No Authorization"},{"phrase":"An error has occurred trying to validate the
API Key for PasswordListID 'XXXX'. Please check the PasswordListID and API Key values have been specified, and are correct."}]}]