# Return json response from back end workflows

**URL:** <https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306>\
**Category:** APIs\
**Created:** [March 6, 2025, 2:34pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306 "2025-03-06T14:34:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tccorfield](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tccorfield/32/243522_2.png) [@tccorfield](https://forum.bubble.io/u/tccorfield)\
**Post date:** [March 6, 2025, 2:34pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306/1 "2025-03-06T14:34:38Z")

</div>

Hi everyone,

- I’m struggling to pass back responses to a front end workflow from a backend workflow (api workflow) as part of a scheduled call from FE.
- When I call the API (openAI via bubble API connector) as a one-off from front end it works fine and bubble clearly reads the json response and let’s me handle/store the response in the FE.
- But when I call the same API multiple times via the back end workflow and try to return the responses to the front end, the FE workflow doesn’t recognise the structure of the response.
- I’m sending as JSON. I’ve defined the specific parameters that I need via the “return data from api” step in my BE workflow.

Clearly bubble handles responses from BE workflows in a different way to direct API responses called from front end workflows. I’ve been going round on this for hours - I know it will be something simple because i can see what i want to return to FE right there in the server logs! Thanks a lot to anyone who can help!

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [March 6, 2025, 2:42pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306/2 "2025-03-06T14:42:13Z")

</div>

Can you share what you have set? API Connector and backend WF (return data from API)? Did you use other content-type instead to build your JSON?

---

<div class="post-metadata">

**Author:** ![tccorfield](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tccorfield/32/243522_2.png) [@tccorfield](https://forum.bubble.io/u/tccorfield)\
**Post date:** [March 6, 2025, 2:48pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306/3 "2025-03-06T14:48:20Z")

</div>

Thanks for the quick reply! yes exactly - I have the API connector set up with an OpenAI API call. I then trigger this in the BE workflow. The response from the OpenAI API call is JSON. The OpenAI API call requires 2x text field inputs. I’ve tested the call via the API connector and it works fine.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [March 6, 2025, 2:57pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306/4 "2025-03-06T14:57:14Z")

</div>

What I mean is how do you trigger the backend workflow? using API connector? This is the only way to get a response from a backend WF to frontend…

---

<div class="post-metadata">

**Author:** ![tccorfield](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tccorfield/32/243522_2.png) [@tccorfield](https://forum.bubble.io/u/tccorfield)\
**Post date:** [March 6, 2025, 3:01pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306/5 "2025-03-06T15:01:00Z")

</div>

ah sorry: I’m triggering via a “schedule API workflow” action in the frontend workflow

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [March 6, 2025, 4:15pm UTC](https://forum.bubble.io/t/return-json-response-from-back-end-workflows/362306/6 "2025-03-06T16:15:43Z")

</div>

This won’T work. Return data from API will not be applied. You need to use API Connector for that. Or app connector

> [@How To Return Data From Backend API Workflows (no manual API connector)](https://forum.bubble.io/t/how-to-return-data-from-backend-api-workflows-no-manual-api-connector/306357):
>
> TLDR: calling backend workflow from API connector is unreasonably tedious app connector auto-sets up and syncs fields result/returned data from backend workflow can be used in following front-end steps Returning data from backend workflow in front-end without manually setting up API connector calls I have a lot of feelings today, as I’ve learned something that would’ve saved me hours of time had I known earlier, and it feels like something that only a handful of people know about (based on th…
