Skip to main content
The Slack connector lets your workflows send messages, manage channels, search for content, and interact with your Slack workspace.
For the full API reference, see the Slack API documentation.

Connection setup

1

Create a Slack app

Go to api.slack.com/apps and click Create New App. Choose From scratch, name it (e.g., “Spojit”), and select your workspace.
2

Add bot token scopes

Navigate to OAuth & Permissions and add the following Bot Token Scopes:
  • chat:write: Send messages
  • channels:read: List channels
  • channels:history: Read message history
  • users:read: List users
  • reactions:write: Add/remove reactions
  • pins:write: Pin/unpin messages
  • search:read: Search messages
  • bookmarks:write: Manage bookmarks
3

Install to workspace

Click Install to Workspace and authorize the app. Copy the Bot User OAuth Token (starts with xoxb-).
4

Add the connection in Spojit

Go to Connections in Spojit, click Add Connection, select Slack, and enter:
  • Bot Token: The xoxb-... token you copied
Invite your Slack bot to channels where it needs to send messages. In Slack, open the channel and type /invite @YourBotName.

Tools

Messages

string
required
Channel ID (e.g., C01234567).
string
required
Message text.
object[]
Block Kit blocks for rich formatting.
string
Parent message timestamp to reply in a thread.
Unfurl links in the message.
boolean
default:"true"
Unfurl media in the message.
Example request:
Example response:
string
required
Channel ID.
string
required
Message timestamp.
string
New message text.
object[]
Block Kit blocks for rich formatting.
Example request:
Example response:
string
required
Channel ID.
string
required
Message timestamp.
Example request:
Example response:
string
required
Search query string.
string
default:"score"
Sort by score or timestamp.
string
default:"desc"
Sort direction: asc or desc.
number
default:"20"
Number of results (max 100).
Example request:
Example response:

Channels

string
Comma-separated channel types to include.
boolean
default:"false"
Exclude archived channels.
number
default:"100"
Max results (max 1000).
string
Pagination cursor.
Example request:
Example response:
string
required
Channel ID.
Example request:
Example response:
string
required
Channel ID.
number
default:"100"
Max messages (max 1000).
string
Pagination cursor.
string
Only messages after this Unix timestamp.
string
Only messages before this Unix timestamp.
Example request:
Example response:
string
required
Channel ID.
string
required
Parent message timestamp.
number
default:"100"
Max replies (max 1000).
string
Pagination cursor.
Example request:
Example response:
string
required
Channel name (lowercase, no spaces, max 80 characters).
boolean
default:"false"
Create as a private channel.
Example request:
Example response:
string
required
Channel ID.
string
required
Comma-separated user IDs.
Example request:
Example response:
string
required
Channel ID.
string
required
New topic text.
Example request:
Example response:

Users

number
default:"100"
Max results (max 1000).
string
Pagination cursor.
Example request:
Example response:
string
required
User ID.
Example request:
Example response:
string
required
Email address.
Example request:
Example response:

Reactions

string
required
Channel ID.
string
required
Message timestamp.
string
required
Emoji name without colons (e.g., thumbsup).
Example request:
Example response:
string
required
Channel ID.
string
required
Message timestamp.
string
required
Emoji name without colons.
Example request:
Example response:

Pins

string
required
Channel ID.
string
required
Message timestamp.
Example request:
Example response:
string
required
Channel ID.
string
required
Message timestamp.
Example request:
Example response:
string
required
Channel ID.
Example request:
Example response:

Bookmarks

string
required
Channel ID.
string
required
Bookmark title.
string
required
Bookmark type (e.g., link).
URL for the bookmark.
string
Emoji icon for the bookmark.
Example request:
Example response:

Advanced

string
required
Slack API method name (e.g., chat.postMessage).
string
required
HTTP method: GET or POST.
object
Request parameters.
Example request:
Example response: