OpenAI API (chat method): What is the best way to send questions

Can you pass an array to the API? I’m wondering if there will be an error. I only pass a string which contains all of the chat history.