curl --request POST \
--url http://localhost:3000/api/v1/chats \
--header 'Content-Type: application/json' \
--cookie nut-session= \
--data '
{
"title": "<string>",
"proposalId": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
]
}
'{
"success": true,
"data": {
"chat": {
"id": "<string>",
"title": "<string>",
"proposalId": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}Create a new chat
curl --request POST \
--url http://localhost:3000/api/v1/chats \
--header 'Content-Type: application/json' \
--cookie nut-session= \
--data '
{
"title": "<string>",
"proposalId": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
]
}
'{
"success": true,
"data": {
"chat": {
"id": "<string>",
"title": "<string>",
"proposalId": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}Session cookie authentication
Chat title
Associated proposal ID
Show child attributes
Chat created
Show child attributes
Show child attributes
Chat ID
Chat title
Associated proposal ID
Show child attributes
user, assistant, system, tool Message content
Name (for tool messages)
Tool calls (for assistant messages)
Tool call ID (for tool messages)