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 Automate / how to use flow to con...
Power Automate
Unanswered

how to use flow to connect API using OAuth 2.0

(0) ShareShare
ReportReport
Posted on by 40

Hi All, 

My goal establish the connection with the customer website using API with OAUTH 2.0 ( using client Secret and API Key) to download the images from the customer. i got an error message while trying to connect with customer API. 

My question : 

- are we be able to use HTTP call to connect ? i could not find the authorization "Oauth 2.0" on the list ? they only show 'Active Directory Oauth' - which asking to to enter Tenant and Audience as a required ; but i have no information.

- what is the possible solution for this ? i am so new to flow so not sure what should i do to establish the connection. Please advice

 

 

 

Categories:
I have the same question (0)
  • v-lin-msft Profile Picture
    728 on at

    Hi @vnguyen1,

     

    The HTTP action can be able to call the web API and it generated authorization headers. 

     

    The Audience and Client ID are the same value.  You can check this in your Azure Portal Application registration, this is the Application ID in the properties.

    The Tenant field value is the domain, for example for us its: YourTenant.onmicrosoft.com.

     

    You can also refer to this blog:

    https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Generate-an-Azure-OAuth2-0-Token-from-a-quot-service-quot-Flow/ba-p/61979 

    Please have a try, I hope it can help you.

     

    Best Regards,

    Community Support Team _ Lin Tu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • vnguyen1 Profile Picture
    40 on at

    Thanks for your response, @v-lin-msft 

    below is my input for HTTP call :

    method :  POST

    URL:https://api.gettyimages.com/oauth2/token

    Header :

    Content-Type: application/x-www-form-urlencoded

    Body:

    client_id=exampleApiKey&client_secret=exampleSecret&username=someUsername&password=WithSomePassword

    ==>

    i got below error message while trying to generate the access token :

    BadRequest. The provided input content is not valid: 'The provided content-type header value
    'application/x-www-form-urlencoded ' is not well formed.'.
     
    not sure what should i do at this point ? 
    Please advice

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard