Skip to content

Copilot Chat

POST
/api/copilotkit
curl --request POST \
--url http://localhost:8000/api/copilotkit

Main CopilotKit chat endpoint — streams AI responses with tool use.

Accepts: messages: list of {role, content} conversation_id: optional, to continue an existing conversation context: optional application context

Successful Response

Media typeapplication/json
Examplegenerated
example