Skip to content

Conversations

A conversation holds one person's back-and-forth with the agent. POST /responses starts one for you when you leave out conversation. You only need these routes to list, show or delete them.

Every route takes user, and only that person's conversations are visible.

Route Does
POST /conversations Start an empty one (optional)
GET /conversations?user=…&limit=20 That person's conversations, newest first (up to 100)
GET /conversations/{id}?user=… One conversation
GET /conversations/{id}/items?user=… Everything in it, oldest first
DELETE /conversations/{id}?user=… Delete it

A conversation looks like this:

{
  "id": "conv_93ab…",
  "object": "conversation",
  "title": "Policy tables",
  "created_at": 1793900000,
  "updated_at": 1793900400,
  "metadata": {}
}

The title is the start of the person's first question, so you can list conversations without making up names.

Items are the same kinds of things as a response's output: messages, tool calls, tool results and approval requests. They also include the person's own messages (role: "user"). Use them to draw a conversation again when someone reopens it.

Deleting

Deleting a conversation hides it for good: it can't be read, continued, or searched by the agent again. If you need it erased from Klaris completely, ask us.

It also removes what the agent remembered because of that conversation. If the person told the agent "remember I look after Acme" in that conversation, that memory goes too. Memories added any other way stay. See Memory.