curl --request POST \ --url https://api.yourdomain.com/api/chats/chat_123abc/streams \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "chatId": "chat_123abc" }'
{ "success": true, "message": "Stream created successfully", "stream": { "id": "stream_345xyz", "chatId": "chat_123abc", "createdAt": "2024-01-17T10:30:00Z" } }
Creates a new stream for a specific chat