Documentation - v1.6.0-beta.24
    Preparing search index...

    Thin HTTP client for the Slack Web API.

    Uses Node's built-in fetch. An instance is injected into context.turnState by SlackAgentExtension at the start of each turn and can be retrieved with context.turnState.get<SlackApi>(SlackApiKey).

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Calls a Slack Web API method.

      Parameters

      • method: string

        The API method name (e.g. 'chat.postMessage').

      • Optionaloptions: Record<string, unknown>

        Request payload. null and undefined values are omitted from the serialized body.

      Returns Promise<SlackResponse>

      The parsed Slack API response.

      When the HTTP request fails or the API returns ok: false.