POST api Databox


I retrieve data via a get api, and I would like to send them to databox to display them.
The problem is that at the time of the post via api, the api returns to me that it is empty or badly structured, do you have an idea?

I made a short explanatory video:

thank you !

Hi @Larmier_Anthony, welcome to the community :tada:

I am sorry to hear you’re having trouble here. On first sight it looks like in your expression you are using JSON.stringify(), which returns a string:

You are, however, also setting the content type to JSON:

Could you try returning a JSON object instead of a string in your expression, for example by using an expression like {{ $json }}?

You can visualize the difference by temporarily sending your request to instead of your API.

With JSON.stringify:

Without JSON.stringify:

Hello @MutedJam thank you for your quick response!

Big discovery for the website thank you very much!

I attach a screenshot

Looking better, it was missing the [] after the data! Thank you very much for your help!

1 Like

Nice, glad to hear this helped! Thanks so much for confirming and for sharing your solution :slight_smile: