web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP Request Authentic...
Power Automate
Unanswered

HTTP Request Authentication with Azure DevOps Services REST API 6.0

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have a rookie authentication problem that I cannot figure out:

I have access to a DevOps organization and project. I would like to use Power Automate to export the workitem history from there, via the API. I am using the following API call in a HTTP step in my flow: https://dev.azure.com/{organization}/{project}/_apis/wit/reporting/workItemRevisions

 

The HTTP step fails with Error 302 - "Object moved to <URL>" - I believe that the issue is with the authentication field. I have no idea what authentication to choose and what to put in the various fields I have 0 experience with this. When I paste the same API URL into my browser I can see the JSON output without problems. To DevOps itself I am logged in with my corporate MS account (I tried to use the email+password combo for Basic authentication but it did not work either).

 

I am not really sure where to go from there, so if anyone could help explain how I can set this up I would be very grateful! I have no idea what authentication type to choose and how to get the required credentials.

Best regards,

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @dnl_mlstn,

     

    There is a specific Send an HTTP request to Azure DevOps action which you can use instead of the HTTP action:

    https://docs.microsoft.com/en-us/connectors/visualstudioteamservices/#send-an-http-request-to-azure-devops

     

    sendanhttprequesttoazuredevops_getrevisions.png

     

    With this action you don't have to worry about configuring authentication. Obviously the user which is used for the connection still needs enough permission on the project though 😁

  • dnl_mlstn Profile Picture
    13 on at

    Ahhhh thank you! Savior!!!

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard