Difference between typing parameters as json or passing them as keys on top on the API connector

Hi,

I am connecting to openai api and I have a question.

This works:

This doesn’t work:

Throws this error:

baderror

It is the same endpoint and I am sending the same parameters. Why one setup works and the other one doesn’t?

parameters are added to the query string of the url, where everything is a string.

body parameters are in the json body where you can have strings, numbers, booleans.

2 Likes

Thanks!

Cheers!