cURL
curl --request POST \ --url https://api.example.com/chats \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "chat_type": "code", "analysis_node_id": "<string>", "code_version_id": "<string>" } '
{ "id": "<string>" }
create a new chat session for either a code version, or an analysis
API key in Bearer token format
code
analysis
Successful Response