# Change API calls for Live and development

**URL:** <https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013>\
**Category:** APIs\
**Created:** [February 19, 2019, 8:12pm UTC](https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013 "2019-02-19T20:12:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@niels](https://forum.bubble.io/u/niels)\
**Post date:** [February 19, 2019, 8:12pm UTC](https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013/1 "2019-02-19T20:12:01Z")

</div>

Hello,

I have a bubble App which needs to call a different API in live mode.

How would one differ between live and development versions.

I found that I can ‘test’ in workflows for ‘is development version’. But that would mean I need to duplicate all related workflows and build the api calls for live.

Is there a more ‘easy’ solution , like env variables ?

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [February 20, 2019, 3:07am UTC](https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013/2 "2019-02-20T03:07:12Z")

</div>

First;

You can duplicate a whole API Connector “API” (you can also dupe a call.) Right click on thecthing and you’ll see the options.

Second: Your “Live” api can be called in dev mode. The point of this is external APIs will sometimes have a test environment where ur supposed to do your development. Then, upon review you get access to production.

But of course, you can at that point (when you have access to production) just call the production API whenever you want. So, you CAN (if you want) just say “Eff it. I’m done with your training wheels environment.”

At that point, copying the API is just to have something as a backup (the dev/test version of the calls). It’s such a PIA to change your call URLs and such that this is very tempting when using Bubble. And I wouldn’t really dissuade you from that.

---

<div class="post-metadata">

**Author:** ![niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@niels](https://forum.bubble.io/u/niels)\
**Post date:** [February 24, 2019, 1:29pm UTC](https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013/3 "2019-02-24T13:29:30Z")

</div>

Hey Keith, Many thanks for your suggestions.

In my case I have a API for the development environment and a different one for the production environment. I can/will never call the ‘production API’ in the ‘development environment’.

For now I will copy workflows and switch based on ‘is dev version’.

I would love to have %API\_URL% all over the bubble environment 😉

---

<div class="post-metadata">

**Author:** ![edu\_4949](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/edu_4949/32/80091_2.png) [@edu\_4949](https://forum.bubble.io/u/edu_4949)\
**Post date:** [December 21, 2020, 9:37am UTC](https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013/4 "2020-12-21T09:37:10Z")

</div>

Please see my last tip if it solves this issue: [Handle with 'dev' and 'live' environments using 'API connector' calls](http://forum.bubble.io/t/handle-with-dev-and-live-environments-with-api-connector-calls/126755)

---

<div class="post-metadata">

**Author:** ![neilmagnuson11](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@neilmagnuson11](https://forum.bubble.io/u/neilmagnuson11)\
**Post date:** [May 13, 2024, 9:02am UTC](https://forum.bubble.io/t/change-api-calls-for-live-and-development/50013/5 "2024-05-13T09:02:04Z")

</div>

Right click and you see duplicate… 🤯 🤯
