cURL
curl --request POST \ --url http://localhost:3000/api/v1/ai/chat \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "messages": [ { "role": "user", "content": "<string>", "name": "<string>", "toolCalls": [ {} ], "toolCallId": "<string>" } ], "model": "<string>", "stream": true, "tools": [ {} ], "proposalId": "<string>", "agentName": "<string>" } '
"<string>"
Send a message to the AI assistant with optional tool support. Supports streaming responses via Server-Sent Events.
Session cookie authentication
Conversation messages
Show child attributes
user
assistant
system
tool
Message content
Name (for tool messages)
Tool calls (for assistant messages)
Tool call ID (for tool messages)
AI model to use
Enable streaming response
Available tools for the AI
Associated proposal ID
Agent to use for the conversation
AI response (streaming or complete)
Server-Sent Events stream