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

# Grep Slack Messages

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

## Request

- Base URL: `https://apigcp.trynia.ai/v2`
- URL: `https://apigcp.trynia.ai/v2/slack/installations/{installation_id}/grep`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nozomio-labs/apis/nia-ai-api/docs/slack/installations/:installation_id/grep/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2026-02-28** `7e426dce5dda`: 2 info
  - api tag `Slack` added
  - api tag `Usage` removed
- **2026-02-20** `056a9334ce0b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/changes/slack/installations/:installation_id/grep/post.md)

---

[API](https://skmtc.dev/nozomio-labs/apis/nia-ai-api.md) - [All operations](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/revisions/dbb602a3ef17?raw)
