curl --request POST \ --url https://api.yourdomain.com/api/chats \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "New Project Discussion", "chatId": "custom_chat_id_123" }'
{ "success": true, "message": "Chat created successfully", "chat": { "id": "custom_chat_id_123", "name": "New Project Discussion", "createdAt": "2024-01-17T10:30:00Z", "updatedAt": "2024-01-17T10:30:00Z" } }
Creates a new chat for the authenticated user