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 API key
Power Apps
Unanswered

Custom connector API key

(1) ShareShare
ReportReport
Posted on by 2

I am attempting to create a custom connector that connects to an external API. For the security section of the custom connector, I selected API key. I gave the proper API key when creating the connection, but when I try to test the connection I get an error saying invalid authorization header. I realized that when the request is made, Bearer is being added before the API key like this:

{
"Authorization": "Bearer xxxxxxxxxxxxxxxxxx"
}

 

This is an issue because the API I am trying to access uses basic authentication. I was able to access this API using Google Apps Script with the header:

{
"Authorization": "xxxxxxxxxxxxxxxxxx"
}

 

I tried turning off authentication in security and adding this header in the definition section as part of the GET request, but I got an error saying the 'Authorization' header is not allowed. When looking through the forums for the API I am trying to access I came across this post https://forum.aws.chdev.org/t/status-code-400/6102 which says "the Companies House API key is the username part of a the http basic authorization username:password string format (the whole is base64 encoded) and the password is blank." When I try setting up this API using basic authentication it does not allow me to leave the password blank. Is there any solution to this issue? 

Categories:
I have the same question (1)
  • James Mc Profile Picture
    2 on at
    Did you ever get anywhere with this?  I'm having the same problem and have been tearing my hair out on it.
     
    It seems to be completely ignoring the 'Basic Authentication' and adding Bearer whether I like it or not.  Can't use the Official 'Companies House (Independent Publisher)' as it doesn't allow for a search by name.
     
    Gah!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard