List conversations

Get all conversations of agents that user owns. With option to restrict to a specific agent.

请求头

xi-api-keystring可选

查询参数

cursorstring可选
Used for fetching next page. Cursor is returned in the response.
agent_idstring可选

Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource.

visited_agent_idsstring可选
Filter conversations where any of these agents participated. Can not exceed 50 values.
visited_agent_branch_idsstring可选
Filter conversations where any of these agent branches participated. Can not exceed 50 values.
triggered_procedure_idsstring可选
Filter conversations where any of these procedures were triggered. Can not exceed 50 values.
call_successfulenum可选
The result of the success evaluation
允许的值:
call_start_before_unixinteger可选

Unix timestamp (in seconds) to filter conversations up to this start date.

call_start_after_unixinteger可选

Unix timestamp (in seconds) to filter conversations after to this start date.

call_duration_min_secsinteger可选
Minimum call duration in seconds.
call_duration_max_secsinteger可选
Maximum call duration in seconds.
rating_maxinteger可选1-5

Maximum overall rating (1-5).

rating_mininteger可选1-5

Minimum overall rating (1-5).

has_feedback_commentboolean可选
Filter conversations with user feedback comments.
user_idstring可选
Filter conversations by the user ID who initiated them.
evaluation_paramsstring可选

Evaluation filters. Repeat param. Format: criteria_id:result where result is one of success|failure|unknown. Example: eval=value_framing:success

data_collection_paramsstring可选
Data collection filters. Repeat param. Format: id:op:value where op is one of eq|neq|gt|gte|lt|lte|in. For in, pipe-delimit values. An empty value matches conversations where the field was not collected (id:eq:), and neq with an empty value matches where it was (id:neq:). eq is exact equality. gt|gte|lt|lte require a numeric value.
dynamic_variable_paramsstring可选
Dynamic variable filters. Repeat param. Format: name:op:value where op is one of eq|neq|gt|gte|lt|lte|in. For in, pipe-delimit values. An empty value matches conversations where the variable was not set (name:eq:), and neq with an empty value matches where it was (name:neq:). eq is exact equality. gt|gte|lt|lte require a numeric value. Names containing ':' cannot be expressed.
data_collection_idsstring可选

Data collection field IDs to include in each conversation summary. Repeat param. When omitted, data_collection_results is not returned.

evaluation_criteria_idsstring可选

Evaluation criteria IDs to include in each conversation summary. Repeat param. When omitted, evaluation_criteria_results is not returned.

tool_namesstring可选
Filter conversations by tool names used during the call.
tool_names_successfulstring可选
Filter conversations by tool names that had successful calls.
tool_names_erroredstring可选
Filter conversations by tool names that had errored calls.
include_invalid_tool_callsboolean可选默认为 false
Also match tool calls that never ran.
main_languagesstring可选

Filter conversations by detected main language (language code).

page_sizeinteger可选1-100默认为 30
How many conversations to return at maximum. Can not exceed 100, defaults to 30.
summary_modeenum可选默认为 exclude
Whether to include transcript summaries in the response.
允许的值:
searchstring可选Deprecated

Full-text or fuzzy search over transcript messages

conversation_initiation_sourceenum可选默认为 unknown
Enum representing the possible sources for conversation initiation.
text_onlyboolean可选
conversation_product_typeenum可选
Restrict results to a single conversation product surface.
允许的值:
branch_idstring可选
Filter conversations by branch ID.
version_idstring可选
Filter conversations by version ID.
parent_conversation_idstring可选
Filter conversations by parent conversation ID for subagent conversations.
topic_idsstring可选
Filter conversations by topic IDs assigned during topic discovery.
exclude_statusesenum可选

Exclude conversations with the given statuses. Useful for hiding in-progress / processing conversations from list views.

允许的值:
tag_idsstring可选

Filter conversations by conversation tag IDs assigned via the conversation-tags endpoints.

workflow_node_entered_idstring可选
Filter conversations to only those that entered the given node.
termination_reasonsstring可选

Filter conversations by their stored termination_reason (metadata.termination_reason). Repeat param to match any of several.

guardrail_typesenum可选

Filter to conversations where a guardrail of any of these types triggered (metadata.triggered_guardrails.guardrail_type). Repeat param to match any of several.

custom_guardrail_namesstring可选

Filter to conversations where a custom guardrail with any of these names triggered (metadata.triggered_guardrails.guardrail_name). Only custom guardrails carry a name. Repeat param to match any of several.

sort_directionenum可选

The direction to sort conversations by call start time. Defaults to descending (newest first).

允许的值:

响应

Successful Response
conversationslist of objects
has_moreboolean
next_cursorstring可选

错误

422
Conversations List Request Unprocessable Entity Error