This endpoint is used to create a chat thread for an agent. It defaults to creating a chat thread with a title "New Thread" if no title is provided.Staging behaviour:
Pass agent_version=staging as a query parameter to create the chat thread for the staging version instead of the published agent.
Path Parameters:
agent_id: ID of the agent for which the chat thread is to be created
Request Body:
title (str): Title of the chat thread
Returns:
A JSON response with the created chat thread object or error message.