Skip to main content

List the messages of an Oliver thread.

GET/api/v1/oliver-threads/{oliver_thread_id}/messagesoliver:run

The conversation as the chat shows it, oldest first: your messages and the agent's answers, each with the model, its cost and its tokens. A message that started a sub-agent names that thread in child_oliver_thread_id; read it with this same route. role filters to user or assistant messages. Another user's thread is 403 naming its ID. Needs View Oliver Conversations; tool_calls is empty without View Oliver Tool Execution History.

Scopeoliver:run
AsynchronousNo
MCP toollist_oliver_thread_messages
Portal permissionsview_oliver_conversations
Pagingkeyset
Default ordercreated_at, oliver_message_id
Sort fieldscreated_at, oliver_message_id
Filtersrole

Parameters​

NameInTypeRequiredDescription
oliver_thread_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
rolequeryarray of stringOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of OliverThreadMessageRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

OliverMessageToolCall​

FieldTypeRequiredDescription
namestringRequiredThe tool the agent called.
tool_call_keystringRequiredThe key the model gave the call: the tool_call_key of the run's tool call.

OliverThreadMessage​

FieldTypeRequiredDescription
agent_namestring or nullRequiredThe agent that ran it (assistant messages).
child_oliver_thread_idstring or nullRequiredThe sub-agent thread the message started: read its conversation with list_oliver_thread_messages.
contentstringRequiredThe message's text; an attached image reads as [image].
coststring or nullRequiredWhat the model calls that wrote the message cost, as the Portal records it for the chat; null when none was recorded.
created_atstring (date-time) or nullRequired
model_namestring or nullRequiredThe model that wrote the message.
oliver_message_idstringRequired
oliver_run_idstring or nullRequiredThe run that wrote the message; null for a message the Portal did not tie to a run.
oliver_thread_idstringRequiredThe thread the message was written on: a sub-agent's own thread for its messages.
reasoning_tokensinteger or nullRequiredTokens the model spent reasoning.
request_tokensinteger or nullRequiredTokens sent to the model for the message.
response_tokensinteger or nullRequiredTokens the model wrote.
rolestringRequireduser or assistant (open).
tool_callsarray of OliverMessageToolCallRequiredThe tools an assistant message called; their inputs and results are in list_oliver_run_tool_calls.