Text search

Search through conversation transcript messages by full-text and fuzzy search

ヘッダー

xi-api-keystringオプション

クエリパラメータ

text_querystring必須

The search query text for full-text and fuzzy matching

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.
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).

exclude_statusesenumオプション

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

許可された値:
termination_reasonsstringオプション

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

page_sizeintegerオプション1-50デフォルト値 20
Number of results per page. Max 50.
summary_modeenumオプションデフォルト値 exclude
Whether to include transcript summaries in the response.
許可された値:
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.
topic_idsstringオプション
Filter conversations by topic IDs assigned during topic discovery.
sort_byenumオプション

Sort order for search results. ‘search_score’ sorts by search score, ‘created_at’ sorts by conversation start time.

許可された値:
cursorstringオプション
Used for fetching next page. Cursor is returned in the response.

レスポンス

Successful Response
resultslist of objects
has_moreboolean
Whether there are more results available
metaobjectオプション
next_cursorstringオプション
Cursor for the next page of results

エラー

422
Messages Text Search Request Unprocessable Entity Error