Api call error, what is wrong?

Help. I am failing to initialize with this setup for connecting Chat GPT API with prompt in dynamic format:

“model”: “gpt-3.5-turbo”,
“messages”: [

I keep getting this message, please help.

Raw response for the API
Status code 400
“error”: {
“message”: “‘null’ is not of type ‘object’ - ‘messages.0’”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null

This is wrong. The “messages” needs to be an object…

This link should help…