---
title: "Smart Search Conversation Messages"
method: GET
path: "/v1/convai/conversations/messages/smart-search"
tags: ["Agents Platform"]
---

# Smart Search Conversation Messages

`GET /v1/convai/conversations/messages/smart-search`

Search conversation transcripts by semantic similarity to surface relevant messages based on meaning and intent, rather than exact keyword matches

## Query parameters

- `text_query` string, required — The search query text for semantic similarity matching
- `agent_id` string, nullable — Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource.
- `page_size` integer — Number of results per page. Max 50.
- `cursor` string, nullable — Used for fetching next page. Cursor is returned in the response.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- MessagesSearchResponse
  - `meta` ListResponseMeta
    - `total` integer, nullable
    - `page` integer, nullable
    - `page_size` integer, nullable
  - `results` MessagesSearchResult[], required
    - `conversation_id` string, required
    - `agent_id` string, required
    - `agent_name` string, nullable
    - `transcript_index` integer, required
    - `chunk_text` string, required
    - `chunk_highlights` SearchHighlightSegment[], nullable
      - `value` string, required
      - `is_hit` boolean, required
    - `score` number, required
    - `conversation_start_time_unix_secs` integer, required
  - `next_cursor` string, nullable — Cursor for the next page of results
  - `has_more` boolean, required — Whether there are more results available

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/6c2d6eb4a7e6/schema)
