---
title: "Search Channel Messages"
method: POST
path: "/channels/tools/messages/search"
tags: ["Channels"]
---

# Search Channel Messages

`POST /channels/tools/messages/search`

## Request body

- ChannelMessagesSearchRequest
  - `artifact_id` string, uuid, required
  - `query` string, required
  - `destination_ids` string[], nullable
  - `after` string, date-time, nullable
  - `before` string, date-time, nullable
  - `limit` integer, nullable
  - `cursor` string, nullable

## Response `200`

Successful Response

- ChannelSearchResult
  - `results` ChannelSearchResultItem[]
    - `message_id` string, required
    - `destination_id` string, required
    - `channel_name` string, nullable
    - `thread_id` string, nullable
    - `sender_name` string, nullable
    - `excerpt` string
    - `sent_at` string, date-time, nullable
  - `cursor` string, nullable
  - `searched` ChannelSearchedChannel[]
    - `destination_id` string, required
    - `name` string, nullable
    - `coverage` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-25** `ec21cdc5486c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/channels/tools/messages/search/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/72f2feba8ccb?raw)
