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 fetch Access-To...
Power Automate
Unanswered

How to fetch Access-Token after generic oAuth

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have added a generic oAuth2 in my custom API. While creating a flow, I am asked to login and authorize. Once the account is authorized, I am asked to enter other inputs for calling the API. To call my api, I need an Access-Token. How to get access-token after authorizing the user in ms flow?

 

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

    Hi,

     

    These articles might help:
    Register Custom APIs in Microsoft Flow

    https://flow.microsoft.com/en-us/documentation/register-custom-api/

    Integrating a Custom API with Flow

    https://flow.microsoft.com/en-us/blog/integrating-custom-api/

     

    Make sure that you have followed the steps correctly.

     

    Regards,

    Mona

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-monli-msft,

    Let me explain you the point here:

    This is the swagger page of my API:

    https://drive.google.com/open?id=0B3yN9c5Gk8lmcWtXNU1TT3lpSmc

     

    I contains Access-Token as a required field. Now to call this API from MS Flow template, it should be dynamically filled after the user authenticates himself. But I did not see any way to get the Access token. Could you please help me with this?

  • ashwinsa Profile Picture
    Microsoft Employee on at

    Hi @Anonymous If you have chosen Generic OAuth2, Flow will set the "Authorization" header with the access token and call the API. You should be able to see the incoming calls hitting your API surface with the Authorization header.

  • Lithium7 Profile Picture
    6 on at

    Test

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard