# Not able to generate API Credentials

**URL:** <https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055>\
**Category:** Community Support\
**Created:** [September 14, 2021, 2:31pm UTC](https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055 "2021-09-14T14:31:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fin1](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@fin1](https://community.tradovate.com/u/fin1)\
**Post date:** [September 14, 2021, 2:31pm UTC](https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055/1 "2021-09-14T14:31:14Z")

</div>

Hi Alex,

I was asked by Tradovate Support to reach out to you.

I get this attached “Internal server Error” when tryin to generate an API key.

Please help.

Thank you!!  
 ![unnamed](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/3/3ed05970b9c3721a47ded58c75031b7aaf7dd6ae.png)

---

<div class="post-metadata">

**Author:** ![BWeis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/bweis/32/27_2.png) [@BWeis](https://community.tradovate.com/u/BWeis)\
**Post date:** [September 14, 2021, 2:35pm UTC](https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055/2 "2021-09-14T14:35:35Z")

</div>



---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [September 14, 2021, 3:12pm UTC](https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055/3 "2021-09-14T15:12:18Z")

</div>

Hi @fin1,

Can you possibly provide some more details? Please press `Ctrl+Shift+I` to open dev tools, then look at the Network tab. Generate your API only after you have this tab open. Then screenshot the result of the `generateapikey` call which you should be able to see like this:

 ![apikeygen](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/3/3c1482897e1fddd6dfeaff37f5833282b14c40f4.png)  
 ![apikeygen2](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/6/664966ba30288e1a7740d3eef935f46da1e8884a.png)

Be sure to include the Request Payload under the Headers tab (in the network tab once you’ve selected `generateapikey`. If the request payload string is too long to screenshot, please copy the text and include it.

---

<div class="post-metadata">

**Author:** ![fin1](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@fin1](https://community.tradovate.com/u/fin1)\
**Post date:** [September 14, 2021, 3:36pm UTC](https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055/4 "2021-09-14T15:36:48Z")

</div>

Thanks! It’s working now. Not sure why it didn’t earlier.

Question though … Does the same API key work with both live and demo accounts?

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [September 14, 2021, 3:49pm UTC](https://community.tradovate.com/t/not-able-to-generate-api-credentials/3055/5 "2021-09-14T15:49:37Z")

</div>

Glad to hear it. The API Key will work for both demo and live, the difference is the endpoint you use. `https://live.tradovateapi.com/v1` and family for live, `https://demo.tradovateapi.com/v1` for demo.
