Voxli Voxli

Conversations

Import a conversation

Stores a chat with your agent, in OpenTelemetry's GenAI messages format, keyed by your agent's own id for the chat. Importing the same id again replaces that conversation's messages. Traces with the same chat id are linked: ones sent to Voxli, and ones Voxli reads from a connected Langfuse or LangSmith shortly after the import.

POST /conversations/

Authorization

HeaderTypeDescription
Authorizationrequired
string
Header with your API key as a Bearer token: Bearer <api-key>. See Authentication.

Body

application/json
PropertyTypeDescription
externalIdrequired
string
Your agent's own id for this chat. Importing the same id again replaces the conversation.
messagesrequired
object[]
The chat in order, in OpenTelemetry's GenAI messages format: what the user and your agent said, and the tools your agent called
rolerequired
enum<string>
user for the person chatting, assistant for your agent, tool for what a tool returned
Allowed values: user, assistant, tool
partsrequired
object[]
The message's parts in order: text, tool calls on an assistant message, and tool call responses on a tool message
If type is "text"
object
typerequired
string
Value: "text"
contentrequired
string
The text
If type is "tool_call"
object
typerequired
string
Value: "tool_call"
idrequired
string
The call's id. Its response has it too.
namerequired
string
The tool's name
arguments
any
The arguments, as any JSON
If type is "tool_call_response"
object
typerequired
string
Value: "tool_call_response"
idrequired
string
The id of the tool call it answers
responserequired
any
What the tool returned, as any JSON
timestamp
string (date-time)
When it was sent, in UTC. Not part of OpenTelemetry's format.
startedAt
string (date-time)
When the chat started, in UTC. Without it, the first message's timestamp, or the time of the import.
metadata
object
Any JSON to keep with the conversation, such as a channel. Importing the chat again without it keeps the earlier metadata.

Response

  • 200The chat was imported before; its messages were replaced
  • 201A new conversation
PropertyTypeDescription
idrequired
string
The conversation's id in Voxli

Traces

Send traces (OTLP/HTTP)