---
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`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/convai/conversations/messages/smart-search`
- Auth: none declared

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.
- `branch_id` string, nullable: Filter conversations by branch ID.
- `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

## Changes

- **2026-09-24** `14b71caad897`: 1 info
  - added the new optional `query` request parameter `branch_id`
- **2026-06-08** `37fac3c5a2d7`: 1 info
  - added the optional property `results/items/chunk_highlights` to the response with the `200` status
- **2026-04-03** `deb5e58ddddf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/conversations/messages/smart-search/get.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) - [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/d04f5e77c40a?raw)
