Return an array of items/data to api caller

Hi all,

I am building out our api endpoints using bubbles backend api workflow. These endpoints are simply to serve as a bridge between our carriers api endpoints and our users. I am then returning data from our own api calls to the api caller using return data from api.

However, within these workflow steps I am making our own api call which gets an array of items.

How do i return an array of items to the caller using the return data action? I can’t seem to work this out.

Sample of array is below:

{
“pageNumber”: 1,
“devices”: [
{
“iccid”: “89010303300131752603”,
“status”: “TEST_READY”,
“ratePlan”: “”,
“communicationPlan”: “Wireless -ABIR - 5GNSA/LTE/SMS - 25Core - US”
},
{
“iccid”: “89010303300131752595”,
“status”: “TEST_READY”,
“ratePlan”: “”,
“communicationPlan”: “Wireless -ABIR - 5GNSA/LTE/SMS - 25Core - US”
},
{
“iccid”: “89010303300131752306”,
“status”: “TEST_READY”,
“ratePlan”: “”,
“communicationPlan”: “Wireless -ABIR - 5GNSA/LTE/SMS - 25Core - US”

So I need to return this array to the caller in this format. IE each item returned in the array will have these 4 values.

How do I reutrn this to the user using the return data action?

Thanks,

Nick

You may consider using other content-type and create your own json (and set header to Content-type: application/json)