API response 401 with Full access PAT

Maxime Lebrun 0 Reputation points
2025-09-25T12:23:15.88+00:00

I am writing a Python script and I need RW access to the Work Items. I created a PAT with full access and using it in the Authorization header but I am still recieving an error 401. Is this API protected behind a different auth method or a policy from my organisation?
User's image

Azure DevOps

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.