---
title: "Search Workspace"
method: POST
path: "/v3/workspaces/{workspace_id}/search"
tags: ["workspaces"]
---

# Search Workspace

`POST /v3/workspaces/{workspace_id}/search`

Search messages in a Workspace using optional filters. Use `limit` to control the number of
results returned.

## Path parameters

- `workspace_id` string, required

## Request body

- MessageSearchOptions
  - `query` string, required — Search query
  - `filters` object, nullable — Filters to scope the search
  - `limit` integer — Number of results to return

## Response `200`

Successful Response

- Message[]
  - `id` string, required
  - `content` string, required
  - `peer_id` string, required
  - `session_id` string, required
  - `metadata` object
  - `created_at` string, date-time, required
  - `workspace_id` string, required
  - `token_count` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/clawdsolana/apis/honcho-api.md) · [All operations](https://skmtc.net/clawdsolana/apis/honcho-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clawdsolana/honcho-api/versions/0730be052dc9/schema)
