Cannot use key "to" in Raw body of HTTP Request

  • Goal: Send an HTTP POST request where the body of the request has the key "to" with an array value.

Steps:

  • Create a query (REST api call with HTTP POST)
  • Specify the header Content-Type: application/json
  • Set the body type to Raw
  • Use the following body (note the "to" keyword)
{
  templateId: {{ template.value }},
  params: {
    date: {{ date.value }}
  },
  to: [
    {
      email: {{ to_email.value }},
      name: "client"
    }
  ],
}

Result: the request Retool makes will simply have "to": "" instead of taking the array value as specified

Changing the key from "to" to some arbitrary value appears to resolve the issue, (i.e, when changed to "foo" it works as expected)

Works with foo key

Hey @jcace! Welcome to the community forum and thanks for posting. :slight_smile:

I am unable to replicate this behavior on Retool Cloud version 3.76.0:

Is this an intermittent or persistent issue? It might also help to see how you've configured your Brevo resource in Retool.