Skip to main content
POST
/
chats
create chat
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>"
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Body

application/json
chat_type
enum<string>
required
Available options:
code,
analysis
analysis_node_id
string | null
code_version_id
string | null

Response

Successful Response

id
string
required