---
title: "Search message text across the coach's conversations"
method: GET
path: "/api/conversations/search"
tags: ["Conversations"]
---

# Search message text across the coach's conversations

`GET /api/conversations/search`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/conversations/search`
- Auth: API key in cookie `luca.session_token`

Case-insensitive text search over inbound and outbound message bodies, newest first, with the lead's display name. At most 10 hits.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Query parameters

- `q` string, required
- `channel` string
- `sinceDays` integer
- `limit` integer

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- ConversationSearchResponse
  - `hits` object[], required
    - `messageId` string, required
    - `leadId` string, required
    - `leadName` string, nullable, required
    - `channel` string, required
    - `direction` string, required
    - `body` string, required
    - `at` string, nullable, required

## Other responses

- `401`: unauthorized
- `429`: rate limited

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
