> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack SDK

> Reference for the Tracecat Slack SDK integration: registered actions, required secrets, expected inputs, and example workflow usage.

## Call method

Action ID: `tools.slack_sdk.call_method`

Instantiate a Slack client and call a Slack SDK or Web API method.

Reference: [https://docs.slack.dev/reference/methods](https://docs.slack.dev/reference/methods)

### Secrets

Required secrets:

* `slack`: required values `SLACK_BOT_TOKEN`.

### Input fields

<ParamField path="sdk_method" type="string" required>
  Slack Python SDK method name or Web API method name (e.g. `chat_postMessage` or `chat.postMessage`)
</ParamField>

<ParamField path="params" type="object | null">
  Slack Python SDK method parameters

  Default: `null`.
</ParamField>

## Call paginated method

Action ID: `tools.slack_sdk.call_paginated_method`

Instantiate a Slack client and call a paginated Slack SDK method.

Reference: [https://docs.slack.dev/apis/web-api/pagination#methods](https://docs.slack.dev/apis/web-api/pagination#methods)

### Secrets

Required secrets:

* `slack`: required values `SLACK_BOT_TOKEN`.

### Input fields

<ParamField path="sdk_method" type="string" required>
  Slack Python SDK method name that supports cursor pagination (e.g. `conversations_history`)
</ParamField>

<ParamField path="key" type="string | null">
  Key to extract from the response.

  Default: `null`.
</ParamField>

<ParamField path="limit" type="integer">
  Maximum number of items to retrieve. Must be less than 1000

  Default: `200`.
</ParamField>

<ParamField path="params" type="object | null">
  Slack Python SDK method parameters

  Default: `null`.
</ParamField>

## Post response

Action ID: `tools.slack_sdk.post_response`

Post messsage back to Slack interaction via `response_url`.

Reference: [https://docs.slack.dev/interactivity/handling-user-interaction#message\_responses](https://docs.slack.dev/interactivity/handling-user-interaction#message_responses)

### Input fields

<ParamField path="url" type="string" required>
  Webhook URL.
</ParamField>

<ParamField path="blocks" type="array[object] | null">
  Blocks to send to the webhook.

  Default: `null`.
</ParamField>

<ParamField path="replace_original" type="boolean">
  Whether to replace the original message.

  Default: `false`.
</ParamField>

<ParamField path="response_type" type="string">
  Response type. Defaults to `ephemeral`.

  Default: `"ephemeral"`.

  Allowed values: `in_channel`, `ephemeral`.
</ParamField>

<ParamField path="text" type="string | null">
  Text to send to the webhook.

  Default: `null`.
</ParamField>

<ParamField path="thread_ts" type="string | null">
  Thread timestamp. If None, defaults to the current timestamp.

  Default: `null`.
</ParamField>
