Skip to main content
POST
/
slack
/
installations
/
{installation_id}
/
grep
Grep Slack Messages
curl --request POST \
  --url https://apigcp.trynia.ai/v2/slack/installations/{installation_id}/grep \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pattern": "<string>",
  "channel": "<string>",
  "limit": 20
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

installation_id
string
required

Body

application/json
pattern
string
required

Search string for BM25 keyword matching

Minimum string length: 1
channel
string | null

Filter by channel name or ID

limit
integer
default:20

Max results

Required range: 1 <= x <= 100

Response

Successful Response