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 add Authorizati...
Power Automate
Unanswered

How to add Authorization: Bearer in a Custom Connector using Gateway?

(1) ShareShare
ReportReport
Posted on by 4

I'm working on integrating an internal API into Power Platform using a Custom Connector that connects through an on-premises data gateway. The API requires authentication via an Authorization: Bearer <token> header, and the token is dynamically generated in a previous step of the process.

Here’s the challenge:

  • I can't set the Authorization header directly in the request definition I get an error saying this header is not allowed.
  • Using the Security section with API Key and setting the parameter name to Authorization and value to Bearer <token> doesn’t work either Power Platform seems to ignore it and sends a default header.
  • The standard HTTP connector works fine with the token, but it doesn’t support routing through the gateway, which is required in my case.

Has anyone found a way to:

  1. Dynamically pass a Bearer token in the header for each request?
  2. Configure a Custom Connector to work with the gateway and still allow dynamic token injection?

Any help or guidance would be greatly appreciated!

Categories:
I have the same question (3)
  • Ellis Karim Profile Picture
    12,062 Super User 2026 Season 1 on at
    I don't develop custom connectors, but when I last created one I had to set a Policy:

     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • OM-15052158-0 Profile Picture
    2 on at
    even after adding policy, its not working. random Authorization value in header
  • CU18050953-0 Profile Picture
    2 on at
    Over 60 questions on the forum since 2019 but no working answer found on how to set a 'Bearer' API key in the Authorization header: https://community.powerplatform.com/globalsearch/?target=forum&q=bearer

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 Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard