Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Go to siteWith the Slack API, you can build all sorts of integrations and applications to make your work life easier. Here are just a few examples:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
slack: {
type: "app",
app: "slack",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://slack.com/api/users.profile.get`,
headers: {
Authorization: `Bearer ${this.slack.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when a new message is posted to one or more channels
Emit new event when a message was posted in a direct message channel
Emit new event when a username or specific keyword is mentioned in a channel
Emit new event when a member has added an emoji reaction to a message
Send a message to a public channel and customize the name and avatar of the bot that posts the message. See postMessage or scheduleMessage docs here
Send a message to a private channel and customize the name and avatar of the bot that posts the message. See postMessage or scheduleMessage docs here
Send a direct message to a single user. See postMessage or scheduleMessage docs here
Send a message using Slack's Block Kit UI framework to a channel, group or user. See postMessage or scheduleMessage docs here
Send a message as a threaded reply. See postMessage or scheduleMessage docs here
Slack uses OAuth authentication. When you connect your Slack account, Pipedream will open a popup window where you can sign into Slack and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Slack API.
Pipedream requests the following authorization scopes when you connect your account:
bookmarks:write
calls:read
calls:write
channels:history
channels:read
channels:write
dnd:read
dnd:write
emoji:read
files:read
groups:history
groups:read
groups:write
im:history
im:read
im:write
links:read
links:write
mpim:history
mpim:read
mpim:write
pins:read
pins:write
reactions:read
reactions:write
reminders:read
reminders:write
remote_files:read
remote_files:share
stars:read
stars:write
team:read
usergroups:read
usergroups:write
users:read
users:read.email
users:write
chat:write:bot
chat:write:user
commands
files:write:user
users.profile:write
users.profile:read
search:read
GET
https://slack.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
state={{oauth.state}}
&
redirect_uri={{oauth.redirect_uri}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://slack.com/api/oauth.access
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=authorization_code
&
code={{oauth.code}}