Skip to main content
POST
/
api
/
chat
/
conversations
Create conversation
curl --request POST \
  --url https://api.ai2fin.com/api/chat/conversations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>"
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "title": "<string>",
    "messageCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Body

application/json
title
string

Optional title for the conversation

Response

201 - application/json

Conversation created

success
boolean
data
object