This endpoint creates a new conversation for a specific bot and authenticated end user.
URL Parameters
The ID of the bot that the conversation belongs to
JWT token for the end user. Generate this via POST /api/bots/auth using your API key and the
user’s email, then pass it as the chatbot-token header.
Request Body
Initial text used to name the conversation. The name is set to the text before the first ”.”
Response
The newly created conversation record
Unique identifier for the conversation
Conversation name derived from the prompt
The end user ID that owns the conversation
The bot ID that the conversation is associated with
Conversation messages (empty on creation)
ISO timestamp when the conversation was created
{
"prompt": "Cola vs Fanta. Which should I pick?"
}
{
"data": [
{
"id": "6de563f8-9b05-4710-9b46-4dd6761e2942",
"name": "Cola vs Fanta",
"user_id": "test-firebase-id-1234",
"chatbot_id": "9c050854-b29f-44fe-a00d-7b3e5dc42fba",
"messages": [],
"created_at": "2025-04-23T09:09:59.619Z"
}
]
}
{
"error": "Unauthorized",
"details": {}
}
{
"error": "Not found",
"details": {
"botId": "8c050854-b29f-44fe-a00d-7b3e5dc42fba not found"
}
}
Creating a conversation does not send a message to the bot. To send a message, use POST /api/bots/
/conversations/ after you create the conversation.