# API Key change at runtime?

**URL:** <https://forum.convai.com/t/api-key-change-at-runtime/1756>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [September 24, 2024, 4:03pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756 "2024-09-24T16:03:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 24, 2024, 4:03pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/1 "2024-09-24T16:03:42Z")

</div>

**Original Discord Post by boomslanghegemony | 2024-09-24 16:03:42**

I need to have users enter their personal API key when first running my app. I assume that is fairly simple. This is an app that runs on a Quest 3.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 24, 2024, 5:07pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/2 "2024-09-24T17:07:06Z")

</div>

**Reply by k3kalinix | 2024-09-24 17:07:06**

Hello \<@878361442993188915\>,

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 24, 2024, 5:07pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/3 "2024-09-24T17:07:22Z")

</div>

**Reply by k3kalinix | 2024-09-24 17:07:22**

Assets\Convai\Scripts\Editor\Setup\AccountsSection\APIKeySetup.cs

**Images:**

 ![image.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/f/fdc579714ef9021197265fc9b767af7518e90c49.png)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 24, 2024, 5:08pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/4 "2024-09-24T17:08:04Z")

</div>

**Reply by k3kalinix | 2024-09-24 17:08:04**

You can use this method.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 24, 2024, 5:09pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/5 "2024-09-24T17:09:16Z")

</div>

**Reply by k3kalinix | 2024-09-24 17:09:16**

I suggest you do it in a different scene.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [September 24, 2024, 6:05pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/6 "2024-09-24T18:05:35Z")

</div>

**Reply by boomslanghegemony | 2024-09-24 18:05:35**

Ahhh, ok! Thanks so much.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 25, 2024, 12:14pm UTC](https://forum.convai.com/t/api-key-change-at-runtime/1756/7 "2024-11-25T12:14:26Z")

</div>

Closed on November 25, 2024, 12:14pm UTC

This conversation happened on the Convai Discord Server, so this post will be closed.
