---
title: "Grep Slack Messages"
method: POST
path: "/slack/installations/{installation_id}/grep"
tags: ["Usage"]
---

# Grep Slack Messages

`POST /slack/installations/{installation_id}/grep`

BM25 keyword search over indexed Slack messages in TurboPuffer.

## Path parameters

- `installation_id` string, required

## Request body

- SlackGrepRequest
  - `pattern` string, required — Search string for BM25 keyword matching
  - `channel` string, nullable — Filter by channel name or ID
  - `limit` integer — Max results

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/trynia/apis/nia-ai-api.md) · [All operations](https://skmtc.net/trynia/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trynia/nia-ai-api/revisions/d216ffc3efb6/schema)
