# You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth

**URL:** <https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130>\
**Category:** Need help\
**Created:** [December 27, 2025, 7:30pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130 "2025-12-27T19:30:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon65590315](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@anon65590315](https://forum.bubble.io/u/anon65590315)\
**Post date:** [December 27, 2025, 7:30pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/1 "2025-12-27T19:30:14Z")

</div>

Hello everyone,

Im new on bubble and i have issue connecting Open AI with Bubble.

I have made several test without success. i still have this error “You didn’t provide an API key. You need to provide your API key in an Authorization header using Bearer auth”

here is a screenshot of my setting on the API connection

 ![image](https://us1.discourse-cdn.com/bubble/original/4X/0/e/1/0e1c846494740fc839a2435f2b0be083a2c417af.png)\*

Everything seems ok when i made the call. Then i try to use “chat completion”, i got this error…

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [December 27, 2025, 7:42pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/2 "2025-12-27T19:42:55Z")

</div>

Send a screenshot of your API call in API connector (not just the group)

---

<div class="post-metadata">

**Author:** ![anon65590315](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@anon65590315](https://forum.bubble.io/u/anon65590315)\
**Post date:** [December 27, 2025, 7:50pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/3 "2025-12-27T19:50:10Z")

</div>

Here it is

 ![image](https://us1.discourse-cdn.com/bubble/original/4X/2/9/f/29f128ffa731186e01b312a0c7f865d26769862a.png)

---

<div class="post-metadata">

**Author:** ![carlovsk.edits](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/carlovsk.edits/32/251706_2.png) [@carlovsk.edits](https://forum.bubble.io/u/carlovsk.edits)\
**Post date:** [December 27, 2025, 8:24pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/4 "2025-12-27T20:24:31Z")

</div>

![CleanShot 2025-12-27 at 17.20.45](https://us1.discourse-cdn.com/bubble/original/4X/7/b/6/7b672e077a1eafa5e1fb8811e04cd157b5a7794d.gif)

I tested it here and it worked perfectly with the same body you are sending…

Is there anything wrong with your API key?

Also, this isn’t mandatory, but chat completion is listed as “Legacy” in OpenAI. The new way to use chat completion is through “Responses.”

Documentation link:

[https://platform.openai.com/docs/guides/conversation-state#overview](https://platform.openai.com/docs/guides/conversation-state#overview)

---

<div class="post-metadata">

**Author:** ![anon65590315](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@anon65590315](https://forum.bubble.io/u/anon65590315)\
**Post date:** [December 27, 2025, 8:35pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/5 "2025-12-27T20:35:08Z")

</div>

Thank you. It seems also work with me like what you have send. However, once i create a button and a chat completion action, i have this error.

here is the workflow that i have created and which bring me the error “you didn’t provide an api key”:

 ![image](https://us1.discourse-cdn.com/bubble/original/4X/3/2/a/32a2483ff0da3fe0a49b666c2e09957efab13056.png)

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [December 27, 2025, 11:26pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/6 "2025-12-27T23:26:05Z")

</div>

> [@anon65590315](#):
>
> ![image](https://us1.discourse-cdn.com/bubble/original/4X/2/9/f/29f128ffa731186e01b312a0c7f865d26769862a.png)

> [@anon65590315](#):
>
> ![image](https://us1.discourse-cdn.com/bubble/original/4X/3/2/a/32a2483ff0da3fe0a49b666c2e09957efab13056.png)

These are not the same API calls. Your step 1 in the workflow is using a plugin action from an installed plugin, not your API Connector call.

I’d recommend using the API Connector call, it’s very rare that using a plugin makes sense when all it does is give you an API call.

---

<div class="post-metadata">

**Author:** ![carlovsk.edits](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/carlovsk.edits/32/251706_2.png) [@carlovsk.edits](https://forum.bubble.io/u/carlovsk.edits)\
**Post date:** [December 28, 2025, 3:28pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/7 "2025-12-28T15:28:24Z")

</div>

Funny thing is, he initially posted using the API Connector, but in the workflow action he tried to use a plugin…

I was looking at the plugins available here, and he probably has this one installed:

 ![CleanShot 2025-12-28 at 12.24.56@2x690x347](https://us1.discourse-cdn.com/bubble/original/4X/8/1/5/8150dbd3ff36ee58c88b9110f38c53b965ed7136.png)

@anon65590315 uninstall this plugin and use the API Connector actions instead.

---

<div class="post-metadata">

**Author:** ![anon65590315](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@anon65590315](https://forum.bubble.io/u/anon65590315)\
**Post date:** [December 28, 2025, 5:24pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/8 "2025-12-28T17:24:50Z")

</div>

Hello all.

Thank you. I wad indeed using the two plugin (im new and i have not understand exactly what was the API connector plugin.

So i deleted Open Ai plugin and use only Api connector 🙂

thank you!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [March 7, 2026, 7:30pm UTC](https://forum.bubble.io/t/you-didnt-provide-an-api-key-you-need-to-provide-your-api-key-in-an-authorization-header-using-bearer-auth/388130/9 "2026-03-07T19:30:51Z")

</div>

Closed on March 7, 2026, 7:30pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
