Slack (v2) connector
The Slack (v2) connector enables workflow-driven Slack automation: search Slack messages, resolve public channel IDs, and send messages to Slack public channels using the Slack Web API.
You can create connectors in Stack Management > Connectors.
Slack (v2) connectors have the following configuration properties:
- Temporary Slack user token
- A Slack user token (for example,
xoxp-...). This is a temporary MVP authentication method. Treat it as sensitive and rotate it if exposed.
You can test connectors when you create or edit the connector in Kibana. The test verifies connectivity by calling Slack auth.test.
The Slack (v2) connector has the following actions:
- Search messages
-
Search for messages in Slack.
query(required): Slack search query string.inChannel(optional): Addsin:<channel_name>to the query.fromUser(optional): Addsfrom:<@UserID>orfrom:usernameto the query.after(optional): Addsafter:<date>to the query (for example,2026-02-10).before(optional): Addsbefore:<date>to the query (for example,2026-02-10).sort(optional): Sort order,scoreortimestamp.sortDir(optional): Sort direction,ascordesc.count(optional): Results to return (1 to 20). Slack returns up to 20 results per page.cursor(optional): Pagination cursor (useresponse_metadata.next_cursorfrom a previous call).includeContextMessages(optional): Include contextual messages. Defaults totrue.includeBots(optional): Include bot messages. Defaults tofalse.includeMessageBlocks(optional): Include Block Kit blocks. Defaults totrue.raw(optional): Iftrue, returns the full raw Slack response (verbose).
- Resolve channel ID
-
Resolve a Slack conversation ID (
C...for public channels,G...for private channels) from a human channel name (for example,#general).name(required): Channel name (with or without#).types(optional): Conversation types to search. Defaults topublic_channel.match(optional):exact(default) orcontains.excludeArchived(optional): Exclude archived channels. Defaults totrue.cursor(optional): Pagination cursor to resume a previous scan.limit(optional): Channels per page (1 to 1000). Defaults to1000.maxPages(optional): Maximum pages to scan before giving up. Defaults to10.
- Send message
-
Send a message to a Slack conversation ID.
channel(required): Conversation ID (for example,C123...). Use Resolve channel ID first if you only have a channel name.text(required): Message text.threadTs(optional): Reply in a thread (timestamp of the parent message).unfurlLinks(optional): Turn on unfurling of primarily text-based content.unfurlMedia(optional): Turn on unfurling of media content.
Use the Action configuration settings to customize connector networking, such as proxies, certificates, or TLS settings. If you use xpack.actions.allowedHosts, include slack.com in the list.
To use the Slack (v2) connector, you need a Slack app and a Slack user token.
- Create a Slack app and install it to your workspace.
- Add User Token Scopes for the actions you intend to use:
- Resolve channel ID:
channels:read - Send message (public channels):
chat:write - Search messages:
search:read.public,search:read.private,search:read.im,search:read.mpim,search:read.files
- Resolve channel ID:
- Copy the User OAuth Token (for example,
xoxp-...) and enter it in the Temporary Slack user token field when configuring the connector in Kibana.