Announcements
Hey all,
Hope you are well.
I am trying to create a personal access token using this API call and an HTTP request in Power Automate:
Pats - Create - REST API (Azure DevOps Tokens) | Microsoft Learn
I have no auth method set, as I don't think one is required as per the documentation. But I get this response back from thr HTTP call:
302:
<html><head><title>Object moved</title></head><body><h2>Object moved to <a href="https://spsproduks1.vssps.visualstudio.com/_signin?realm=vssps.dev.azure.com&reply_to=https%3A%2F%2Fvssps.dev.azure.com%2FJonathanRussell0871%2F_apis%2Ftokens%2Fpats%3Fapi-version%3D7.0-preview.1&redirect=1&hid=029166d1-ef43-4902-8ccb-a2108a1f480c&context=eyJodCI6MiwiaGlkIjoiYmIwMWQyNjgtZWMwYy00OGNjLWEzZmEtYzY1NzQwZmRhOGJiIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2">here</a>.</h2></body></html>
Can anyone point out where I am going wrong?
In the Learn documentation in my post above, there is this part about security:
I don't really understand what this means, bar the auth type is Basic.
Pretty sure it is because of the authentication, problem is what authentication do I need to use to initiate that first HTTP call.
I have used the send an http request to azure as part of the devops connector, but same issues.
Finally worked it out. Haven’t implemented it yet. But I need to call the main MSFT endpoint to get an access token. Then I’ll be good.
Hi, I'm having the same issue, could you share your solution please? Thanks.
To be honest. I worked out what I needed to do but never managed to implement it correctly.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 442
Vish WR 328
David_MA 268 Super User 2026 Season 1