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 / custom connector for a...
Power Apps
Unanswered

custom connector for an external API

(0) ShareShare
ReportReport
Posted on by 24

Hi,

 

I am trying to retrieve some information (table data) from an external API that requeries some kind of authentication based on an "token" and "bearer" that si requeried to be passed in the header request like

 

headers = {'Content-Type''application/json',
           'Authorization''Bearer {0}'.format(api_token)}
 
I am alredy using this type of connection from excel powerquery and powerbi too, however, I am unable to find if this is also posible from powerapps of powerflow
 
I have both tried to use:
 
Data >> Entities >> Get Data >> other >> API web
 
and
 
Data >> Custom connector >> create from blank ...
 
but in none of the I have been able to reach the conect in the API web with this type of authentication
 
Thanks 
 
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @jon00320 ,

    Could you please share a bit more about your scenario?

    Do you want to retrieve data using an external API within PowerApps app?

     

    Based on the needs that you mentioned, I think Custom connector could achieve your needs. On your side, you could consider create a custom connector based on your external API, then within the Security tab, select API Key as authentication way, and specify the Parameter name to "Authorization", Parameter location to "Header":

    3.JPG

     

    4.JPG

    After that, define proper action under Definition tab based on the action path from your external API. Then save your custom connector, within the "Test" tab, create a connection to the custom connector, it would show up a dialog asking you to provide API Key value (Access Token value), there you should type the following format Access Token value:

    Bearer xxxxxxxxxx

    then test the operation defined in your custom connector under the "Test" tab, check if it could retrieve proper records from your API.

    After that, you could use the Custom connector within your canvas app to retrieve values from your external API.

     

    More details about creating a custom connector in PowerApps, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

    https://www.youtube.com/watch?v=dBCS1nPsDiE

     

    Best regards,

  • jon00320 Profile Picture
    24 on at

    thanks for the response

     

    After creating a custom connector and defining an action for request get, it retuns, when testing this connector, a 0400 type error. 

     

     

    Captura1.JPGCaptura2.JPG

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @jon00320 ,

    Could you please share more details about the error message within your custom connector?

    Is your external API a RESTful API?

     

    Based on the 404 error that you mentioned, it means that there is something wrong with your client. Please check if you have specifyed proper action within your custom connector.

    Also please check if you have provided proper access token when you creared a connection to the custom connector. On your side, you could consider test your external API using Postman tool, then check if the action patch that you specified in your custom connector is proper.

     

    Best regards,

  • jon00320 Profile Picture
    24 on at

    Yes, I can confirm that it is a RESTFull API

     

    On the other hand, I wil  try to do some testing withe GETPOSTMAN so I can give you some more information, maybe the action has not been defined properly. Not sure of this point.

     

    Thanks,

  • jon00320 Profile Picture
    24 on at

    Hi,

     

    I have test the API from POSTMAN and it works, anyway, I have used "Bearer token" as Authorization type that is nos present in the custom connector por power platform.

     

    This is params section for POSTMAN connection:

     

     

     

    Captura2.JPG

    Best Regards,

     

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard