createConversation
The 'createConversation' route initiates a new conversation with the AI chatbot. It's designed to create a unique session for user interactions, allowing for a structured and trackable chat experience.
POST https://api.flexibel.ai/v0/createConversation
Request
Using 'curl' to start a new chat:
curl https://api.flexibel.ai/v0/createConversation \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
Response
The response returns the ID of the newly created conversation:
{
"conversationId": "unique_conversation_id"
}