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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to connect custom ...
Power Apps
Unanswered

How to connect custom API using OAuth2 in Microsoft Power Automate?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am a new member of the platform, so help would mean a lot to me. I'm trying to get a bearer token in Power Automate flow using Oauth 2.0. Since I use a custom connector it is not clear to me what should I specify under the URI field? I have attached screenshots (only the data from the second screenshots I use in Postman, and everything works normally). Thank you.

 

 

petarPan_0-1623625309861.png

 

petarPan_1-1623625326959.png

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    URI is used to enter your API.

    v-xiaochen-msft_0-1623635349231.png

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Wearsky. I don't know how to get the URI, for custom connectors. What should I do?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    I have Access Token Url`http://localhost:60001/identity/connect/token` as URL. when I try this, I get the error that URI is invalid. 
  • PaulD1 Profile Picture
    2,914 on at

    Not very familiar with OAuth and the like - but your URL is for localhost (your PC) and Flow is running in the cloud, so will not be able to connect to that address.

    If you have a custom connector you should be able to add it to your connections and then select that connection in Power Automate and pass in parameters directly rather than having to use HTTP action (a customer connector provides a more user-friendly interface to what you would otherwise use the HTTP action for).

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for response. I will try it. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 510

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 281

Last 30 days Overall leaderboard