Problem connecting Assistant API to website

Thanks a lot ! Of course I have a backend server for the API key but it was just more simple for this demonstration. The problem is : when I remove the section “messages”: [
{“role”: “user”, “content”: userInput} : my website connect successfully with the assistant because I get in the error area the name and description of the assistant. I also tried "prompt’ : userInput instead of “messages”. I can’t find anything in the documentation. Please let me know if you have something. Thank you for your time !