What the API does
Chat
Send one user message and get the agent’s reply, with token usage and the amount charged.
Stream
Same request, but the reply arrives token by token as server-sent events.
Conversations
List the conversations your key has had and page through their messages.
Quickstart
First reply in five minutes with curl, Python or Node.
The basics
A key belongs to exactly one agent. Its permission is either
read-only (list conversations and read messages) or full (also chat).
Endpoints
How conversations work
You do not create conversations. Each chat request names anexternal_user_id, the stable id of the end user on your side. Every message from the same external user through the same key continues the same conversation; a different key, even for the same agent, has its own separate history. See Conversations.
This release is text only: a message is a string, and attachments are not accepted. Every response carries an
X-Request-ID header; quote it when you report a problem.