web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    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,241 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard