How to pass a list in API connector

I am trying to pass a list of cookies this [{…}, …, {…}] in an API of the Connector.

So I use this body JSON object in the API:
{
“cookies”: < cookies >
}

I can initialize the API with my list of cookies. However, when I call the API in a workflow by taking the value of a multiline input containing the cookies it returns an error … I have spent hours trying to make it work but I don’t see any solution… This kind of formatting error is really frustrating with Bubble :sob:

Any insight on this?

One way to do this is:

  • Change the body of the JSON to this (see the square brackets):
{
“cookies”: [ <cookies> ]
}
  • When you are calling the API, set the param to this:
    Wherever the cookies : format as text
    In the format as text, the content will be: { This thing's name } (or whatever field you will pass. see the curly braces), and the delimiter will be ,.

Perfect it works now! thanks a lot for your help.