Skip to content
dimmiDocs

Conversations

List the AI agent's runs on a conversation

GET/api/v1/conversations/{conversation}/ai/runs

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:read ability

Path parameters

conversationstringrequired

Id of the conversation, starting with conv_. A number does not work here; find the id with GET /conversations/{conversation}.

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
answer_message_idstring | nullrequired

Id of the message the agent sent as its answer, such as msg_... Null when the run sent none.

completed_atstring | nullrequired

When the run finished. Null while it is still running.

Format: date-time

conversation_idstring | nullrequired

Id of the conversation the run worked on, such as conv_... Null for a run outside a conversation, such as a playground question.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

erroranyrequired

Why the run failed, as an object with code and message. Null when it did not fail.

feedbackstring | nullrequired

How the answer was rated: helped, not_helped, solved, handoff, discarded, good or bad. Null when nobody rated it.

first_token_msinteger | nullrequired

Milliseconds until the first piece of the answer arrived. Null when not measured.

Format: int32

flagsstring[] | nullrequired

Things that stepped in during the run, such as link_removed, reply_regenerated, reply_withheld, implied_handoff or enforced_handoff. Empty when nothing did.

handoff_reasonstring | nullrequired

Why the agent handed the conversation to the team, such as customer_requested, unknown, max_replies, frustration, spend_cap or provider_error. Null when it did not hand off.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

input_tokensintegerrequired

Tokens sent to the models during the run.

Format: int64

kindstringrequired

What the run was for: conversation, playground, probe, help_center, task, classify, judge, ticket_fill, ticket_match, ticket_summary or simulation.

languagestring | nullrequired

The language detected for the run, as a language tag such as en. Null when none was detected.

latency_msinteger | nullrequired

Milliseconds the whole run took. Null when not measured.

Format: int32

outcomestring | nullrequired

How the run ended: answered, unknown, handoff, silent, greeted, refused, skipped, superseded, drafted or error. Null while it runs.

output_tokensintegerrequired

Tokens the models wrote during the run.

Format: int64

payloads_visibleboolean

True when the caller may read the steps' request and response payloads. Present only when one run is read with its steps.

procedure_traceany

What the run did with the procedure it followed: the path taken, the branches decided and where a guardrail stepped in. Left out when it followed none.

prompt_versionstringrequired

The version of the prompts the run used. Empty when not recorded.

skip_reasonstring | nullrequired

Why the run was skipped without answering, such as human_replied_in_delay or agent_missing. Null when it was not skipped.

statusstringrequired

Where the run stands: running, completed, failed or skipped.

stepsobject[] | null

The run's traced steps in order. Present only when one run is read, not in lists.

Show child attributes
error_kindstring | nullrequired

The kind of failure when the step failed, such as auth, quota, rate_limited, overloaded, timeout or network. Null when it did not fail.

first_token_msinteger | nullrequired

Milliseconds until the model's first output arrived in this step. Null when not measured.

Format: int32

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

input_tokensintegerrequired

Tokens sent to the model in this step.

Format: int64

kindstringrequired

What the step did: classify, retrieve, generate, tool_call, verify, summarize, translate or probe.

latency_msinteger | nullrequired

Milliseconds the step took. Null when not measured.

Format: int32

modelstring | nullrequired

Id of the model the step called. Null for a step that called none.

output_tokensintegerrequired

Tokens the model wrote in this step.

Format: int64

providerstring | nullrequired

The model provider the step called, such as dimmi, anthropic or openai. Null for a step that called none.

requestanyrequired

The redacted record of what the step sent. Null when the caller may not read payloads or the record's retention has passed.

responseanyrequired

The redacted record of what came back. Null when the caller may not read payloads or the record's retention has passed.

seqintegerrequired

The step's position within its run; steps run in rising order.

Format: int32

statusstringrequired

How the step ended: ok, error or canceled.

upstreamstring | nullrequired

The provider the model's calls actually reached, when that differs from the connection's name. Null when not recorded.

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.