Skip to main content
POST
/
slack
/
installations
/
{installation_id}
/
channels
Configure Slack Channels
curl --request POST \
  --url https://apigcp.trynia.ai/v2/slack/installations/{installation_id}/channels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "all",
  "include_channels": [
    "<string>"
  ],
  "exclude_channels": [
    "<string>"
  ]
}
'
{
  "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

Configure which channels to index.

mode
string
default:all

'all' to index all channels, 'selected' to pick specific ones

include_channels
string[] | null

Channel IDs to include (when mode='selected')

exclude_channels
string[] | null

Channel IDs to exclude

Response

Successful Response