Getting "Please use a numerically indexed array" Error - How to Fix This API Output?

Hi everyone,

I’m having trouble running my API. I’m getting the error:

“Please use a numerically indexed array.”

I’m calling an API/Xano endpoint, and this is the JSON output I’m receiving from my backend. It looks like a standard array of objects to me, but WeWeb doesn’t seem to like it.

[
{
“id”: “a95c32d4-0a0b-4028-8bec-a85a1b349c53”,
“client_id”: “763545e5-70bb-4756-92be-0d06821b1f2c”,
“session_status”: “scheduled”,
“sequence_number”: 1
// … other properties
},
{
“id”: “decc43b9-e7a7-4aec-b4b6-3a2e991f6beb”,
“client_id”: “763545e5-70bb-4756-92be-0d06821b1f2c”,
“session_status”: “scheduled”,
“sequence_number”: 2
// … other properties
}
]

Could someone please point me in the right direction?

  • Is there an issue with the structure of my data that I’m missing? Or is it possible instead of using UUID to used my seq_number?

Any help would be greatly appreciated!

Thanks.

Hi Brian :waving_hand:

Hi! The error means that WeWeb expects a “pure” array response from your API—specifically, a JSON structure with numerically indexed items, like [ {...}, {...} ].
Sometimes API tools (like Xano) can send the data as an object with custom string keys (such as UUID or sequence numbers), which WeWeb doesn’t recognize as an array.

Please double-check that your endpoint is returning a top-level array, not an object. In Xano, make sure you’re using the “Array of Objects” response setup. If your data is keyed by UUID, you may need to map or transform it to a standard array before sending to WeWeb.

Does this help?