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 pass API jey to...
Power Automate
Unanswered

How to pass API jey to connector?

(1) ShareShare
ReportReport
Posted on by 2

Hi everyone,

 

I'm trying to use openAI connector with Power Automate, but my token is not saved when I clicked on save (in my connector)

at the first time, I tought it was a kind of security to not allow someone to retrieve my key, but when I start my flow, it returned me the following error message: 

You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://beta.openai.com.

 

But, I'm pretty sure of what I'm doing,

Foufistador_1-1674547957388.png

 

In api Token, I copy/past key, generated from https://beta.openai.com/account/api-keys

But when I clicked on save, the pop closed without taking in account the key I passed it (I tried to generate other keys to be sure, but the issue is still the same)

 

 

 

Categories:
I have the same question (0)
  • simonWilkinson Profile Picture
    4 on at

    Hi,

    I am having the same issue, I have tried a few different approaches but it looks like for some reason the actual API Key is not being saved on the connector. if you look at your connector tab in PowerAutomate and edit the connection you will see just before the modal closes there is a (i) Error dialogue - too quick to read. I am going to try setup a custom connector and will revert if it works. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I saw in the following LinkedIn post that a user was able to use the connection. link

    While I'm also facing the same issues as mentioned above, I did come across a more complicated method to use a custom API connection instead, but still issue should be fixed. custom connection

  • rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at

    I know that this post is a little old, but I had this issue today and. If anyone find this same error when using the OpenAI connector, you can fix it by just adding the word 'Bearer ' before the API key. Your final result will be: Bearer [API_KEY].

     

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

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 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard