# How to make API key in api connector dynamic?

**URL:** <https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644>\
**Category:** Need help\
**Created:** [February 20, 2022, 11:44am UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644 "2022-02-20T11:44:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hirayaleads](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hirayaleads](https://forum.bubble.io/u/hirayaleads)\
**Post date:** [February 20, 2022, 11:44am UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/1 "2022-02-20T11:44:10Z")

</div>

Hi folks.

How can I make the API keys on api connector dynamic? So when I plan to change API key, I can do it somewhere in my app dashboad instead of going through the backend?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/6/e633262771bd9a70111efaa4d25cb1260d9d274c.png)

Thank you

---

<div class="post-metadata">

**Author:** ![jmalmeida](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jmalmeida/32/120123_2.png) [@jmalmeida](https://forum.bubble.io/u/jmalmeida)\
**Post date:** [February 20, 2022, 11:50am UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/2 "2022-02-20T11:50:03Z")

</div>

Add the keys to the header in every call:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/b/ebed28d6ad88b8c2e644de069d71d891d5bf6dbb.png)

---

<div class="post-metadata">

**Author:** ![hirayaleads](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hirayaleads](https://forum.bubble.io/u/hirayaleads)\
**Post date:** [February 20, 2022, 11:53am UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/3 "2022-02-20T11:53:16Z")

</div>

Thank you for your response.

But how do I implement something like this   
and then I have an input field inside my app where I can put there the keys?

Thanks

---

<div class="post-metadata">

**Author:** ![jmalmeida](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jmalmeida/32/120123_2.png) [@jmalmeida](https://forum.bubble.io/u/jmalmeida)\
**Post date:** [February 20, 2022, 12:01pm UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/4 "2022-02-20T12:01:02Z")

</div>

It’s an action, when you add the action to the worflow you’ll have the non private fields available to add dynamic or not dynamic content to them:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/a/7af2ccd64cec25db86df898408ccf43f1fa31380.png)

---

<div class="post-metadata">

**Author:** ![hirayaleads](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hirayaleads](https://forum.bubble.io/u/hirayaleads)\
**Post date:** [February 20, 2022, 12:28pm UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/5 "2022-02-20T12:28:09Z")

</div>

Thank you so much! It worked 🙂  
Is there no security issue with this?

---

<div class="post-metadata">

**Author:** ![jmalmeida](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jmalmeida/32/120123_2.png) [@jmalmeida](https://forum.bubble.io/u/jmalmeida)\
**Post date:** [February 20, 2022, 2:43pm UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/6 "2022-02-20T14:43:31Z")

</div>

You are exposing the token to the user in the browser.

---

<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:** [May 1, 2022, 11:44am UTC](https://forum.bubble.io/t/how-to-make-api-key-in-api-connector-dynamic/192644/7 "2022-05-01T11:44:37Z")

</div>

Closed on May 1, 2022, 11:44am UTC

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