Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

custom connector for an external API



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
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
Community Support
Community Support

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":




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:


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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. 




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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.





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:





Best Regards,


Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,863)