Create Chat
POST
/admin/chat
const url = 'http://localhost:9000/admin/chat';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"messages":["user"],"content":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/chat \ --header 'Content-Type: application/json' \ --data '{ "messages": [ "user" ], "content": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
messages
required
Array<string>
content
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}