
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@datafire/slack
Advanced tools
Client library for Slack Web API
npm install --save @datafire/slack
let slack = require('@datafire/slack').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
One way to interact with the Slack platform is its HTTP RPC-based Web API, a collection of methods requiring OAuth 2.0-based user, bot, or workspace tokens blessed with related OAuth scopes.
Exchange the code passed to your redirect URI for an access_token
slack.oauthCallback({
"code": ""
}, context)
object
stringobject
stringstringstringstringstringExchange a refresh_token for an access_token
slack.oauthRefresh(null, context)
This action has no parameters
object
stringstringstringstringstringApprove an app for installation on a workspace.
slack.admin_apps_approve({
"token": ""
}, context)
object
string: Authentication token. Requires scope: admin.apps:writestring: The id of the app to approve.string: The id of the request to approve.stringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
List approved apps for an org or workspace.
slack.admin_apps_approved_list({
"token": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next pagestring: Authentication token. Requires scope: admin.apps:readinteger: The maximum number of items to return. Must be between 1 - 1000 both inclusive.stringstringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
List app requests for a team/workspace.
slack.admin_apps_requests_list({
"token": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next pagestring: Authentication token. Requires scope: admin.apps:readinteger: The maximum number of items to return. Must be between 1 - 1000 both inclusive.stringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Restrict an app for installation on a workspace.
slack.admin_apps_restrict({
"token": ""
}, context)
object
string: Authentication token. Requires scope: admin.apps:writestring: The id of the app to restrict.string: The id of the request to restrict.stringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
List restricted apps for an org or workspace.
slack.admin_apps_restricted_list({
"token": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next pagestring: Authentication token. Requires scope: admin.apps:readinteger: The maximum number of items to return. Must be between 1 - 1000 both inclusive.stringstringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set the workspaces in an Enterprise grid org that connect to a channel.
slack.admin_conversations_setTeams({
"token": "",
"channel_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.conversations:writestring: The encoded channel_id to add or remove to workspaces.boolean: True if channel has to be converted to an org channelstring: The list of workspaces to which the channel should be shared. Not required if the channel is being shared orgwide. Example: ['T1234', 'T5678']string: The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Add an emoji.
slack.admin_emoji_add({
"name": "",
"token": "",
"url": ""
}, context)
object
string: The name of the emoji to be removed. Colons (:myemoji:) around the value are not required, although they may be included.string: Authentication token. Requires scope: admin.teams:writestring: The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Add an emoji alias.
slack.admin_emoji_addAlias({
"alias_for": "",
"name": "",
"token": ""
}, context)
object
string: The alias of the emoji.string: The name of the emoji to be aliased. Colons (:myemoji:) around the value are not required, although they may be included.string: Authentication token. Requires scope: admin.teams:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
List emoji for an Enterprise Grid organization.
slack.admin_emoji_list({
"token": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next pagestring: Authentication token. Requires scope: admin.teams:readinteger: The maximum number of items to return. Must be between 1 - 1000 both inclusive.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Remove an emoji across an Enterprise Grid organization
slack.admin_emoji_remove({
"name": "",
"token": ""
}, context)
object
string: The name of the emoji to be removed. Colons (:myemoji:) around the value are not required, although they may be included.string: Authentication token. Requires scope: admin.teams:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Rename an emoji.
slack.admin_emoji_rename({
"name": "",
"new_name": "",
"token": ""
}, context)
object
string: The name of the emoji to be renamed. Colons (:myemoji:) around the value are not required, although they may be included.string: The new name of the emoji.string: Authentication token. Requires scope: admin.teams:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Approve a workspace invite request.
slack.admin_inviteRequests_approve({
"token": "",
"invite_request_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.invites:writestring: ID of the request to invite.string: ID for the workspace where the invite request was made.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List all approved workspace invite requests.
slack.admin_inviteRequests_approved_list({
"token": ""
}, context)
object
string: Value of the next_cursor field sent as part of the previous API responsestring: Authentication token. Requires scope: admin.invites:readinteger: The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusivestring: ID for the workspace where the invite requests were made.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List all denied workspace invite requests.
slack.admin_inviteRequests_denied_list({
"token": ""
}, context)
object
string: Value of the next_cursor field sent as part of the previous api responsestring: Authentication token. Requires scope: admin.invites:readinteger: The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusivestring: ID for the workspace where the invite requests were made.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Deny a workspace invite request.
slack.admin_inviteRequests_deny({
"token": "",
"invite_request_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.invites:writestring: ID of the request to invite.string: ID for the workspace where the invite request was made.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List all pending workspace invite requests.
slack.admin_inviteRequests_list({
"token": ""
}, context)
object
string: Value of the next_cursor field sent as part of the previous API responsestring: Authentication token. Requires scope: admin.invites:readinteger: The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusivestring: ID for the workspace where the invite requests were made.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List all of the admins on a given workspace.
slack.admin_teams_admins_list({
"token": "",
"team_id": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next page.string: Authentication token. Requires scope: admin.teams:readinteger: The maximum number of items to return.stringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Create an Enterprise team.
slack.admin_teams_create({
"token": "",
"team_domain": "",
"team_name": ""
}, context)
object
string: Authentication token. Requires scope: admin.teams:writestring: Description for the team.string: Who can join the team. A team's discoverability can be open, closed, invite_only, or unlisted.string: Team domain (for example, slacksoftballteam).string: Team name (for example, Slack Softball Team).object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List all teams on an Enterprise organization
slack.admin_teams_list({
"token": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next page.string: Authentication token. Requires scope: admin.teams:readinteger: The maximum number of items to return. Must be between 1 - 100 both inclusive.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List all of the owners on a given workspace.
slack.admin_teams_owners_list({
"token": "",
"team_id": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next page.string: Authentication token. Requires scope: admin.teams:readinteger: The maximum number of items to return. Must be between 1 - 1000 both inclusive.stringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Fetch information about settings in a workspace
slack.admin_teams_settings_info({
"token": "",
"team_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.teams:readstringobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set the default channels of a workspace.
slack.admin_teams_settings_setDefaultChannels({
"channel_ids": "",
"team_id": "",
"token": ""
}, context)
object
string: An array of channel IDs.string: ID for the workspace to set the default channel for.string: Authentication token. Requires scope: admin.teams:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set the description of a given workspace.
slack.admin_teams_settings_setDescription({
"token": "",
"description": "",
"team_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.teams:writestring: The new description for the workspace.string: ID for the workspace to set the description for.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
An API method that allows admins to set the discoverability of a given workspace
slack.admin_teams_settings_setDiscoverability({
"token": "",
"discoverability": "",
"team_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.teams:writestring: This workspace's discovery setting. It must be set to one of open, invite_only, closed, or unlisted.string: The ID of the workspace to set discoverability on.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Sets the icon of a workspace.
slack.admin_teams_settings_setIcon({
"image_url": "",
"team_id": "",
"token": ""
}, context)
object
string: Image URL for the iconstring: ID for the workspace to set the icon for.string: Authentication token. Requires scope: admin.teams:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set the name of a given workspace.
slack.admin_teams_settings_setName({
"token": "",
"name": "",
"team_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.teams:writestring: The new name of the workspace.string: ID for the workspace to set the name for.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Add an Enterprise user to a workspace.
slack.admin_users_assign({
"token": "",
"team_id": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writestring: Comma separated values of channel IDs to add user in the new workspace.boolean: True if user should be added to the workspace as a guest.boolean: True if user should be added to the workspace as a single-channel guest.string: The ID (T1234) of the workspace.string: The ID of the user to add to the workspace.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Invite a user to a workspace.
slack.admin_users_invite({
"token": "",
"channel_ids": "",
"email": "",
"team_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writestring: A comma-separated list of channel_ids for this user to join. At least one channel is required.string: An optional message to send to the user in the invite email.string: The email address of the person to invite.string: Timestamp when guest account should be disabled. Only include this timestamp if you are inviting a guest user and you want their account to expire on a certain date.boolean: Is this user a multi-channel guest user? (default: false)boolean: Is this user a single channel guest user? (default: false)string: Full name of the user.boolean: Allow this invite to be resent in the future if a user has not signed up yet. (default: false)string: The ID (T1234) of the workspace.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
List users on a workspace
slack.admin_users_list({
"token": "",
"team_id": ""
}, context)
object
string: Set cursor to next_cursor returned by the previous call to list items in the next page.string: Authentication token. Requires scope: admin.users:readinteger: Limit for how many users to be retrieved per pagestring: The ID (T1234) of the workspace.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Remove a user from a workspace.
slack.admin_users_remove({
"token": "",
"team_id": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writestring: The ID (T1234) of the workspace.string: The ID of the user to remove.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Wipes all valid sessions on all devices for a given user
slack.admin_users_session_reset({
"token": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writeboolean: Only expire mobile sessions (default: false)string: The ID of the user to wipe sessions forboolean: Only expire web sessions (default: false)object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set an existing guest, regular user, or owner to be an admin user.
slack.admin_users_setAdmin({
"token": "",
"team_id": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writestring: The ID (T1234) of the workspace.string: The ID of the user to designate as an admin.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set an expiration for a guest user
slack.admin_users_setExpiration({
"token": "",
"expiration_ts": 0,
"team_id": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writeinteger: Timestamp when guest account should be disabled.string: The ID (T1234) of the workspace.string: The ID of the user to set an expiration for.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set an existing guest, regular user, or admin user to be a workspace owner.
slack.admin_users_setOwner({
"token": "",
"team_id": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writestring: The ID (T1234) of the workspace.string: Id of the user to promote to owner.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set an existing guest user, admin user, or owner to be a regular user.
slack.admin_users_setRegular({
"token": "",
"team_id": "",
"user_id": ""
}, context)
object
string: Authentication token. Requires scope: admin.users:writestring: The ID (T1234) of the workspace.string: The ID of the user to designate as a regular user.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Checks API calling code.
slack.api_test({}, context)
object
string: example property to returnstring: Error response to returnobject: Schema for successful response api.test method
Returns list of permissions this app has on a team.
slack.apps_permissions_info({}, context)
object
string: Authentication token. Requires scope: noneobject: Schema for successful response from apps.permissions.info method
object
object
object
object
object
object
object
Allows an app to request additional scopes
slack.apps_permissions_request({
"scopes": "",
"token": "",
"trigger_id": ""
}, context)
object
string: A comma separated list of scopes to request forstring: Authentication token. Requires scope: nonestring: Token used to trigger the permissions APIobject: Schema for successful response from apps.permissions.request method
Returns list of resource grants this app has on a team.
slack.apps_permissions_resources_list({
"token": ""
}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: noneinteger: The maximum number of items to return.object: Schema for successful response apps.permissions.resources.list method
array
object
stringstringobject
stringReturns list of scopes this app has on a team.
slack.apps_permissions_scopes_list({
"token": ""
}, context)
object
string: Authentication token. Requires scope: noneobject: Schema for successful response api.permissions.scopes.list method
object
Returns list of user grants and corresponding scopes this app has on a team.
slack.apps_permissions_users_list({
"token": ""
}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: noneinteger: The maximum number of items to return.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Enables an app to trigger a permissions modal to grant an app access to a user access scope.
slack.apps_permissions_users_request({
"scopes": "",
"token": "",
"user": "",
"trigger_id": ""
}, context)
object
string: A comma separated list of user scopes to request forstring: Authentication token. Requires scope: nonestring: The user this scope is being requested forstring: Token used to trigger the requestobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Uninstalls your app from a workspace.
slack.apps_uninstall({}, context)
object
string: Issued when you created your application.string: Authentication token. Requires scope: nonestring: Issued when you created your application.object: Schema for successful response from apps.uninstall method
Revokes a token.
slack.auth_revoke({
"token": ""
}, context)
object
boolean: Setting this parameter to 1 triggers a testing mode where the specified token will not actually be revoked.string: Authentication token. Requires scope: noneobject: Schema for successful response from auth.revoke method
booleanChecks authentication & identity.
slack.auth_test({
"token": ""
}, context)
object
string: Authentication token. Requires scope: noneobject: Schema for successful response auth.test method
booleanstringstringstringGets information about a bot user.
slack.bots_info({
"token": ""
}, context)
object
string: Authentication token. Requires scope: users:readstring: Bot user to get info onobject: Schema for successful response from bots.info method
object
booleanobject
stringstringstringstringintegerArchives a channel.
slack.channels_archive({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to archiveobject: Schema for successful response from channels.archive method
Creates a channel.
slack.channels_create({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Name of channel to createboolean: Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.object: Schema for successful response channels.create method
Fetches history of messages and events from a channel.
slack.channels_history({}, context)
object
integer: Number of messages to return, between 1 and 1000.boolean: Include unread_count_display in the output?boolean: Include messages with latest or oldest timestamp in results.string: Authentication token. Requires scope: channels:historynumber: Start of time range of messages to include in results.string: Channel to fetch history for.number: End of time range of messages to include in results.object: Schema for successful response channels.history method
integerbooleanbooleanarray
Gets information about a channel.
slack.channels_info({}, context)
object
string: Authentication token. Requires scope: channels:readboolean: Set this to true to receive the locale for this channel. Defaults to falsestring: Channel to get info onobject: Schema for successful response channels.info method
Invites a user to a channel.
slack.channels_invite({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to invite user to.string: User to invite to channel.object: Schema for successful response channels.invite method
Joins a channel, creating it if needed.
slack.channels_join({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Name of channel to joinboolean: Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.object: Schema for successful response from channels.join method
booleanRemoves a user from a channel.
slack.channels_kick({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to remove user from.string: User to remove from channel.object: Schema for successful response from channels.kick method
Leaves a channel.
slack.channels_leave({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to leaveobject: Schema for successful response from channels.leave method
Lists all channels in a Slack team.
slack.channels_list({}, context)
object
boolean: Exclude the members collection from each channelstring: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: channels:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.boolean: Exclude archived channels from the listobject: Schema for successful response channels.list method
array
Sets the read cursor in a channel.
slack.channels_mark({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to set reading cursor in.number: Timestamp of the most recently seen message.object: Schema for successful response channels.mark method
Renames a channel.
slack.channels_rename({}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to renamestring: New name for channel.boolean: Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.object: Schema for successful response from channels.rename method
Retrieve a thread of messages posted to a channel
slack.channels_replies({}, context)
object
number: Unique identifier of a thread's parent messagestring: Authentication token. Requires scope: channels:historystring: Channel to fetch thread fromobject: Schema for successful response from channels.replies method
booleanarray
Sets the purpose for a channel.
slack.channels_setPurpose({
"token": "",
"channel": "",
"purpose": ""
}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to set the purpose ofboolean: if it is true, treat this like a message and not an unescaped thingstring: The new purposeobject: Schema for successful response from channels.setPurpose method
stringSets the topic for a channel.
slack.channels_setTopic({
"token": "",
"channel": "",
"topic": ""
}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to set the topic ofstring: The new topicobject: Schema for successful response from channels.setTopic method
stringUnarchives a channel.
slack.channels_unarchive({
"token": "",
"channel": ""
}, context)
object
string: Authentication token. Requires scope: channels:writestring: Channel to unarchiveobject: Schema for successful response from channels.unarchive method
Deletes a message.
slack.chat_delete({}, context)
object
string: Authentication token. Requires scope: chat:writeboolean: Pass true to delete the message as the authed user with chat:write:user scope. Bot users in this context are considered authed users. If unused or false, the message will be deleted with chat:write:bot scope.string: Channel containing the message to be deleted.number: Timestamp of the message to be deleted.object: Schema for successful response of chat.delete method
Deletes a pending scheduled message from the queue.
slack.chat_deleteScheduledMessage({
"token": "",
"channel": "",
"scheduled_message_id": ""
}, context)
object
string: Authentication token. Requires scope: chat:writeboolean: Pass true to delete the message as the authed user with chat:write:user scope. Bot users in this context are considered authed users. If unused or false, the message will be deleted with chat:write:bot scope.string: The channel the scheduled_message is posting tostring: scheduled_message_id returned from call to chat.scheduleMessageobject: Schema for successful response from chat.deleteScheduledMessage method
Retrieve a permalink URL for a specific extant message
slack.chat_getPermalink({
"token": "",
"message_ts": "",
"channel": ""
}, context)
object
string: Authentication token. Requires scope: nonestring: A message's ts value, uniquely identifying it within a channelstring: The ID of the conversation or channel containing the messageobject: Schema for successful response chat.getPermalink
stringShare a me message into a channel.
slack.chat_meMessage({}, context)
object
string: Authentication token. Requires scope: chat:write:userstring: Channel to send message to. Can be a public channel, private group or IM channel. Can be an encoded ID, or a name.string: Text of the message to send.object: Schema for successful response from chat.meMessage method
Sends an ephemeral message to a user in a channel.
slack.chat_postEphemeral({
"token": "",
"channel": "",
"user": ""
}, context)
object
string: Authentication token. Requires scope: chat:writeboolean: Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.string: A JSON-based array of structured attachments, presented as a URL-encoded string.string: A JSON-based array of structured blocks, presented as a URL-encoded string.string: Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.string: Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.string: URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.boolean: Find and link channel names and usernames.string: Change how messages are treated. Defaults to none. See below.string: How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.string: Provide another message's ts value to post this message in a thread. Avoid using a reply's ts value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread.string: id of the user who will receive the ephemeral message. The user should be in the channel specified by the channel argument.string: Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.object: Schema for successful response from chat.postEphemeral method
Sends a message to a channel.
slack.chat_postMessage({
"token": "",
"channel": ""
}, context)
object
string: Authentication token. Requires scope: chat:writestring: Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.string: A JSON-based array of structured attachments, presented as a URL-encoded string.string: A JSON-based array of structured blocks, presented as a URL-encoded string.string: Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See below for more details.string: Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.string: URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.boolean: Find and link channel names and usernames.boolean: Disable Slack markup parsing by setting to false. Enabled by default.string: Change how messages are treated. Defaults to none. See below.boolean: Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.string: How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.string: Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.boolean: Pass true to enable unfurling of primarily text-based content.boolean: Pass false to disable unfurling of media content.string: Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.object: Schema for successful response of chat.postMessage method
Schedules a message to be sent to a channel.
slack.chat_scheduleMessage({}, context)
object
string: Authentication token. Requires scope: chat:writeboolean: Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See chat.postMessage.string: A JSON-based array of structured attachments, presented as a URL-encoded string.string: A JSON-based array of structured blocks, presented as a URL-encoded string.string: Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.boolean: Find and link channel names and usernames.string: Change how messages are treated. Defaults to none. See chat.postMessage.string: Unix EPOCH timestamp of time in future to send the message.boolean: Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.string: How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.number: Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.boolean: Pass true to enable unfurling of primarily text-based content.boolean: Pass false to disable unfurling of media content.object: Schema for successful response of chat.scheduleMessage method
object
stringstringstringintegerstringReturns a list of scheduled messages.
slack.chat_scheduledMessages_list({}, context)
object
string: For pagination purposes, this is the cursor value returned from a previous call to chat.scheduledmessages.list indicating where you want to start this call from.string: Authentication token. Requires scope: noneinteger: Maximum number of original entries to return.number: A UNIX timestamp of the oldest value in the time rangestring: The channel of the scheduled messagesnumber: A UNIX timestamp of the latest value in the time rangeobject: Schema for successful response from chat.scheduledMessages.list method
object
stringarray
object
integerstringintegerstringProvide custom unfurl behavior for user-posted URLs
slack.chat_unfurl({
"token": "",
"channel": "",
"ts": ""
}, context)
object
string: Authentication token. Requires scope: links:writestring: Channel ID of the messagestring: Timestamp of the message to add unfurl behavior to.string: URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments.string: Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorboolean: Set to true or 1 to indicate the user must install your Slack app to trigger unfurls for this domainstring: Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded.object: Schema for successful response from chat.unfurl method
Updates a message.
slack.chat_update({
"token": "",
"channel": "",
"ts": ""
}, context)
object
string: Authentication token. Requires scope: chat:writestring: Pass true to update the message as the authed user. Bot users in this context are considered authed users.string: A JSON-based array of structured attachments, presented as a URL-encoded string. This field is required when not presenting text.string: A JSON-based array of structured blocks, presented as a URL-encoded string.string: Channel containing the message to be updated.string: Find and link channel names and usernames. Defaults to none. See below.string: Change how messages are treated. Defaults to client, unlike chat.postMessage. Accepts either none or full. See below.string: New text for the message, using the default formatting rules. It's not required when presenting attachments.string: Timestamp of the message to be updated.object: Schema for successful response of chat.update method
stringobject
array
objectstringstringstringArchives a conversation.
slack.conversations_archive({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: ID of conversation to archiveobject: Schema for successful response conversations.archive method
Closes a direct message or multi-person direct message.
slack.conversations_close({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: Conversation to close.object: Schema for successful response conversations.close method
booleanbooleanInitiates a public or private channel-based conversation
slack.conversations_create({}, context)
object
string: Authentication token. Requires scope: conversations:writeboolean: Create a private channel instead of a public onestring: Name of the public or private channel to createstring: Required for workspace apps. A list of between 1 and 30 human users that will be added to the newly-created conversation. This argument has no effect when used by classic Slack apps.object: Schema for successful response conversations.create method
Fetches a conversation's history of messages and events.
slack.conversations_history({}, context)
object
boolean: Include messages with latest or oldest timestamp in results only when either timestamp is specified.string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: conversations:historyinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.number: Start of time range of messages to include in results.string: Conversation ID to fetch history for.number: End of time range of messages to include in results.object: Schema for successful response from conversations.history method
integerbooleanarray
integerRetrieve information about a conversation.
slack.conversations_info({}, context)
object
boolean: Set to true to include the member count for the specified conversation. Defaults to falsestring: Authentication token. Requires scope: conversations:readstring: Conversation ID to learn more aboutboolean: Set this to true to receive the locale for this conversation. Defaults to falseobject: Schema for successful response conversations.info
Invites users to a channel.
slack.conversations_invite({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: The ID of the public or private channel to invite user(s) to.string: A comma separated list of user IDs. Up to 1000 users may be listed.object: Schema for successful response from conversations.invite method
Joins an existing conversation.
slack.conversations_join({}, context)
object
string: Authentication token. Requires scope: channels:writestring: ID of conversation to joinobject: Schema for successful response from conversations.join method
object
array
stringstringRemoves a user from a conversation.
slack.conversations_kick({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: ID of conversation to remove user from.string: User ID to be removed.object: Schema for successful response conversations.kick method
Leaves a conversation.
slack.conversations_leave({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: Conversation to leaveobject: Schema for successful response from conversations.leave method
boolean (values: true)Lists all channels in a Slack team.
slack.conversations_list({}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: conversations:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer no larger than 1000.boolean: Set to true to exclude archived channels from the liststring: Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, imobject: Schema for successful response from conversations.list method
array
object
stringRetrieve members of a conversation.
slack.conversations_members({}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: conversations:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.string: ID of the conversation to retrieve members forobject: Schema for successful response conversations.members method
array
object
stringOpens or resumes a direct message or multi-person direct message.
slack.conversations_open({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: Resume a conversation by supplying an im or mpim's ID. Or provide the users field instead.boolean: Boolean, indicates you want the full IM channel definition in the response.string: Comma separated lists of users. If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users.object: Schema for successful response from conversations.open method when opening channels, ims, mpims
booleanbooleanRenames a conversation.
slack.conversations_rename({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: ID of conversation to renamestring: New name for conversation.object: Schema for successful response from conversations.rename method
Retrieve a thread of messages posted to a conversation
slack.conversations_replies({}, context)
object
boolean: Include messages with latest or oldest timestamp in results only when either timestamp is specified.number: Unique identifier of a thread's parent message.string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: conversations:historyinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.number: Start of time range of messages to include in results.string: Conversation ID to fetch thread from.number: End of time range of messages to include in results.object: Schema for successful response from conversations.replies method
booleanarray
Sets the purpose for a conversation.
slack.conversations_setPurpose({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: Conversation to set the purpose ofstring: A new, specialer purposeobject: Schema for successful response from conversations.setPurpose method
Sets the topic for a conversation.
slack.conversations_setTopic({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: Conversation to set the topic ofstring: The new topic string. Does not support formatting or linkification.object: Schema for successful response from conversations.setTopic method
Reverses conversation archival.
slack.conversations_unarchive({}, context)
object
string: Authentication token. Requires scope: conversations:writestring: ID of conversation to unarchiveobject: Schema for successful response from conversations.unarchive method
Open a dialog with a user
slack.dialog_open({
"token": "",
"trigger_id": "",
"dialog": ""
}, context)
object
string: Authentication token. Requires scope: nonestring: Exchange a trigger to post to the user.string: The dialog definition. This must be a JSON-encoded string.object: Schema for successful response from dialog.open method
Ends the current user's Do Not Disturb session immediately.
slack.dnd_endDnd({
"token": ""
}, context)
object
string: Authentication token. Requires scope: dnd:writeobject: Schema for successful response from dnd.endDnd method
Ends the current user's snooze mode immediately.
slack.dnd_endSnooze({
"token": ""
}, context)
object
string: Authentication token. Requires scope: dnd:writeobject: Schema for successful response from dnd.endSnooze method
booleanintegerintegerbooleanRetrieves a user's current Do Not Disturb status.
slack.dnd_info({}, context)
object
string: Authentication token. Requires scope: dnd:readstring: User to fetch status for (defaults to current user)object: Schema for successful response from dnd.info method
booleanintegerintegerbooleanintegerintegerTurns on Do Not Disturb mode for the current user, or changes its duration.
slack.dnd_setSnooze({
"num_minutes": "",
"token": ""
}, context)
object
string: Number of minutes, from now, to snooze until.string: Authentication token. Requires scope: dnd:writeobject: Schema for successful response from dnd.setSnooze method
booleanintegerintegerRetrieves the Do Not Disturb status for up to 50 users on a team.
slack.dnd_teamInfo({}, context)
object
string: Authentication token. Requires scope: dnd:readstring: Comma-separated list of users to fetch Do Not Disturb status forobject: Schema for successful response from dnd.teamInfo method
booleanobjectLists custom emoji for a team.
slack.emoji_list({
"token": ""
}, context)
object
string: Authentication token. Requires scope: emoji:readobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Deletes an existing comment on a file.
slack.files_comments_delete({}, context)
object
string: Authentication token. Requires scope: files:write:userstring: File to delete a comment from.string: The comment to delete.object: Schema for successful response files.comments.delete method
Deletes a file.
slack.files_delete({}, context)
object
string: Authentication token. Requires scope: files:write:userstring: ID of file to delete.object: Schema for successful response files.delete method
Gets information about a team file.
slack.files_info({}, context)
object
stringstring: Parameter for pagination. File comments are paginated for a single file. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection of comments. See pagination for more details.string: Authentication token. Requires scope: files:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached.string: Specify a file by providing its ID.stringobject: Schema for successful response from files.info method
Lists & filters team files.
slack.files_list({}, context)
object
stringstring: Filter files appearing in a specific channel, indicated by its ID.number: Filter files created before this timestamp (inclusive).number: Filter files created after this timestamp (inclusive).string: Authentication token. Requires scope: files:readstring: Filter files created by a single user.boolean: Show truncated file info for files hidden due to being too old, and the team who owns the file being over the file limit.stringstring: Filter files by type (see below). You can pass multiple values in the types argument, like types=spaces,snippets.The default value is all, which does not filter the list.object: Schema for successful response from files.list method
array
Adds a file from a remote service
slack.files_remote_add({}, context)
object
string: Creator defined GUID for the file.string: URL of the remote file.string: type of filestring: A text file (txt, pdf, doc, etc.) containing textual search terms that are used to improve discovery of the remote file.string: Preview of the document via multipart/form-data.string: Title of the file being shared.string: Authentication token. Requires scope: remote_files:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Retrieve information about a remote file added to Slack
slack.files_remote_info({}, context)
object
string: Authentication token. Requires scope: remote_files:readstring: Creator defined GUID for the file.string: Specify a file by providing its ID.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Retrieve information about a remote file added to Slack
slack.files_remote_list({}, context)
object
number: Filter files created before this timestamp (inclusive).string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.number: Filter files created after this timestamp (inclusive).string: Authentication token. Requires scope: remote_files:readinteger: The maximum number of items to return.string: Filter files appearing in a specific channel, indicated by its ID.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Remove a remote file.
slack.files_remote_remove({}, context)
object
string: Creator defined GUID for the file.string: Specify a file by providing its ID.string: Authentication token. Requires scope: remote_files:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Share a remote file into a channel.
slack.files_remote_share({}, context)
object
string: Comma-separated list of channel IDs where the file will be shared.string: Authentication token. Requires scope: remote_files:sharestring: Creator defined GUID for the file.string: Specify a file by providing its ID.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Updates an existing remote file.
slack.files_remote_update({}, context)
object
string: Creator defined GUID for the file.string: URL of the remote file.string: Specify a file by providing its ID.string: type of filestring: File containing contents that can be used to improve searchability for the remote file.string: Preview of the document via multipart/form-data.string: Title of the file being shared.string: Authentication token. Requires scope: remote_files:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Revokes public/external sharing access for a file
slack.files_revokePublicURL({}, context)
object
string: Authentication token. Requires scope: files:write:userstring: File to revokeobject: Schema for successful response from files.revokePublicURL method
Enables a file for public/external sharing.
slack.files_sharedPublicURL({}, context)
object
string: Authentication token. Requires scope: files:write:userstring: File to shareobject: Schema for successful response from files.sharedPublicURL method
Uploads or creates a file.
slack.files_upload({}, context)
object
string: Comma-separated list of channel names or IDs where the file will be shared.string: File contents via a POST variable. If omitting this parameter, you must provide a file.string: File contents via multipart/form-data. If omitting this parameter, you must submit content.string: Filename of file.string: A file type identifier.string: The message text introducing the file in specified channels.number: Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.string: Title of file.string: Authentication token. Requires scope: files:write:userobject: Schema for successful response files.upload method
Archives a private channel.
slack.groups_archive({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to archiveobject: Schema for successful response from groups.archive method
Creates a private channel.
slack.groups_create({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Name of private channel to createboolean: Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.object: Schema for successful response groups.create method
Clones and archives a private channel.
slack.groups_createChild({}, context)
object
string: Private channel to clone and archive.string: Authentication token. Requires scope: groups:writeobject: Schema for successful response from groups.createChild method
Fetches history of messages and events from a private channel.
slack.groups_history({}, context)
object
integer: Number of messages to return, between 1 and 1000.boolean: Include unread_count_display in the output?boolean: Include messages with latest or oldest timestamp in results.string: Authentication token. Requires scope: groups:historynumber: Start of time range of messages to include in results.string: Private channel to fetch history for.number: End of time range of messages to include in results.object: Schema for successful response groups.history method
integerbooleanarray
Gets information about a private channel.
slack.groups_info({}, context)
object
string: Authentication token. Requires scope: groups:readboolean: Set this to true to receive the locale for this group. Defaults to falsestring: Private channel to get info onobject: Schema for successful response groups.info method
Invites a user to a private channel.
slack.groups_invite({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to invite user to.string: User to invite.object: Schema for successful response groups.invite method
Removes a user from a private channel.
slack.groups_kick({
"token": "",
"channel": "",
"user": ""
}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to remove user from.string: User to remove from private channel.object: Schema for successful response from groups.kick method
Leaves a private channel.
slack.groups_leave({
"token": "",
"channel": ""
}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to leaveobject: Schema for successful response from groups.leave method
Lists private channels that the calling user has access to.
slack.groups_list({}, context)
object
boolean: Exclude the members from each groupstring: Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details.string: Authentication token. Requires scope: groups:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached.boolean: Don't return archived private channels.object: Schema for successful response groups.list method
array
Sets the read cursor in a private channel.
slack.groups_mark({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to set reading cursor in.number: Timestamp of the most recently seen message.object: Schema for successful response from groups.mark method
Opens a private channel.
slack.groups_open({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to open.object: Schema for successful response from groups.open method
Renames a private channel.
slack.groups_rename({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to renamestring: New name for private channel.boolean: Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.object: Schema for successful response from groups.rename method
Retrieve a thread of messages posted to a private channel
slack.groups_replies({}, context)
object
number: Unique identifier of a thread's parent messagestring: Authentication token. Requires scope: groups:historystring: Private channel to fetch thread fromobject: Schema for successful response from groups.replies method
booleanarray
Sets the purpose for a private channel.
slack.groups_setPurpose({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to set the purpose ofstring: The new purposeobject: Schema for successful response from groups.setPurpose method
stringSets the topic for a private channel.
slack.groups_setTopic({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to set the topic ofstring: The new topicobject: Schema for successful response from groups.setTopic method
stringUnarchives a private channel.
slack.groups_unarchive({}, context)
object
string: Authentication token. Requires scope: groups:writestring: Private channel to unarchiveobject: Schema for successful response from groups.unarchive method
Close a direct message channel.
slack.im_close({
"token": "",
"channel": ""
}, context)
object
string: Authentication token. Requires scope: im:writestring: Direct message channel to close.object: Schema for successful response from im.close method
booleanbooleanFetches history of messages and events from direct message channel.
slack.im_history({}, context)
object
integer: Number of messages to return, between 1 and 1000.boolean: Include unread_count_display in the output?boolean: Include messages with latest or oldest timestamp in results.string: Authentication token. Requires scope: im:historynumber: Start of time range of messages to include in results.string: Direct message channel to fetch history for.number: End of time range of messages to include in results.object: Schema for successful response from im.history method
integerbooleanarray
Lists direct message channels for the calling user.
slack.im_list({}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: im:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.object: Schema for successful response im.list method
array
Sets the read cursor in a direct message channel.
slack.im_mark({
"token": "",
"channel": "",
"ts": ""
}, context)
object
string: Authentication token. Requires scope: im:writestring: Direct message channel to set reading cursor in.string: Timestamp of the most recently seen message.object: Schema for successful response im.mark method
Opens a direct message channel.
slack.im_open({}, context)
object
string: Authentication token. Requires scope: im:writeboolean: Set this to true to receive the locale for this im. Defaults to falseboolean: Boolean, indicates you want the full IM channel definition in the response.string: User to open a direct message channel with.object: Schema for successful response from im.open method
booleanobject
stringbooleanbooleannumbernumberbooleanRetrieve a thread of messages posted to a direct message conversation
slack.im_replies({}, context)
object
number: Unique identifier of a thread's parent messagestring: Authentication token. Requires scope: im:historystring: Direct message channel to fetch thread fromobject: Schema for successful response from im.replies method
booleanarray
For Enterprise Grid workspaces, map local user IDs to global user IDs
slack.migration_exchange({
"token": "",
"users": ""
}, context)
object
string: Authentication token. Requires scope: tokens.basicboolean: Specify true to convert W global user IDs to workspace-specific U IDs. Defaults to false.string: A comma-separated list of user ids, up to 400 per requestobject: Schema for successful response from migration.exchange method
stringarray
stringobjectCloses a multiparty direct message channel.
slack.mpim_close({
"token": "",
"channel": ""
}, context)
object
string: Authentication token. Requires scope: mpim:writestring: MPIM to close.object: Schema for successful response from mpim.close method
Fetches history of messages and events from a multiparty direct message.
slack.mpim_history({}, context)
object
integer: Number of messages to return, between 1 and 1000.boolean: Include unread_count_display in the output?boolean: Include messages with latest or oldest timestamp in results.string: Authentication token. Requires scope: mpim:historynumber: Start of time range of messages to include in results.string: Multiparty direct message to fetch history for.number: End of time range of messages to include in results.object: Schema for successful response from mpim.history method
integerbooleanarray
Lists multiparty direct message channels for the calling user.
slack.mpim_list({}, context)
object
string: Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details.string: Authentication token. Requires scope: mpim:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached.object: Schema for successful response from mpim.list method
array
Sets the read cursor in a multiparty direct message channel.
slack.mpim_mark({}, context)
object
string: Authentication token. Requires scope: mpim:writestring: multiparty direct message channel to set reading cursor in.number: Timestamp of the most recently seen message.object: Schema for successful response from mpim.mark method
This method opens a multiparty direct message.
slack.mpim_open({}, context)
object
string: Authentication token. Requires scope: mpim:writestring: Comma separated lists of users. The ordering of the users is preserved whenever a MPIM group is returned.object: Schema for successful response from mpim.open method
Retrieve a thread of messages posted to a direct message conversation from a multiparty direct message.
slack.mpim_replies({}, context)
object
number: Unique identifier of a thread's parent message.string: Authentication token. Requires scope: mpim:historystring: Multiparty direct message channel to fetch thread from.object: Schema for successful response from mpim.replies method
booleanarray
Exchanges a temporary OAuth verifier code for an access token.
slack.oauth_access({}, context)
object
string: The code param returned via the OAuth callback.string: Authentication token. Requires scope: nonestring: This must match the originally submitted URI (if one was sent).boolean: Request the user to add your app only to a single channel. Only valid with a legacy workspace app.string: Issued when you created your application.string: Issued when you created your application.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Exchanges a temporary OAuth verifier code for a workspace token.
slack.oauth_token({}, context)
object
string: Issued when you created your application.string: The code param returned via the OAuth callback.boolean: Request the user to add your app only to a single channel.string: Issued when you created your application.string: This must match the originally submitted URI (if one was sent).object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Exchanges a temporary OAuth verifier code for an access token.
slack.oauth_v2_access({
"code": ""
}, context)
object
string: Issued when you created your application.string: The code param returned via the OAuth callback.string: Issued when you created your application.string: This must match the originally submitted URI (if one was sent).object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Pins an item to a channel.
slack.pins_add({}, context)
object
string: Authentication token. Requires scope: pins:writestring: Channel to pin the item in.number: Timestamp of the message to pin.object: Schema for successful response from pins.add method
Lists items pinned to a channel.
slack.pins_list({}, context)
object
string: Authentication token. Requires scope: pins:readstring: Channel to get pinned items for.Un-pins an item from a channel.
slack.pins_remove({}, context)
object
string: Authentication token. Requires scope: pins:writestring: Channel where the item is pinned to.string: File to un-pin.string: File comment to un-pin.number: Timestamp of the message to un-pin.object: Schema for successful response from pins.remove method
Adds a reaction to an item.
slack.reactions_add({
"token": "",
"channel": "",
"name": "",
"timestamp": ""
}, context)
object
string: Authentication token. Requires scope: reactions:writestring: Channel where the message to add reaction to was posted.string: Reaction (emoji) name.string: Timestamp of the message to add reaction to.object: Schema for successful response from reactions.add method
Gets reactions for an item.
slack.reactions_get({
"token": ""
}, context)
object
boolean: If true always return the complete reaction list.string: File comment to get reactions for.string: Timestamp of the message to get reactions for.string: Authentication token. Requires scope: reactions:readstring: File to get reactions for.string: Channel where the message to get reactions for was posted.object: Schema for successful response from reactions.get methodLists reactions made by a user.
slack.reactions_list({
"token": ""
}, context)
object
integerboolean: If true always return the complete reaction list.string: Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details.string: Authentication token. Requires scope: reactions:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached.string: Show reactions made by this user. Defaults to the authed user.integerobject: Schema for successful response from reactions.list method
array
Removes a reaction from an item.
slack.reactions_remove({
"token": "",
"name": ""
}, context)
object
string: Authentication token. Requires scope: reactions:writestring: Channel where the message to remove reaction from was posted.string: File to remove reaction from.string: File comment to remove reaction from.string: Reaction (emoji) name.string: Timestamp of the message to remove reaction from.object: Schema for successful response from reactions.remove method
Creates a reminder.
slack.reminders_add({}, context)
object
string: Authentication token. Requires scope: reminders:writestring: The content of the reminderstring: When this reminder should happen: the Unix timestamp (up to five years from now), the number of seconds until the reminder (if within 24 hours), or a natural language description (Ex. "in 15 minutes," or "every Thursday")string: The user who will receive the reminder. If no user is specified, the reminder will go to user who created it.object: Schema for successful response from reminders.add method
Marks a reminder as complete.
slack.reminders_complete({}, context)
object
string: Authentication token. Requires scope: reminders:writestring: The ID of the reminder to be marked as completeobject: Schema for successful response from reminders.complete method
Deletes a reminder.
slack.reminders_delete({}, context)
object
string: Authentication token. Requires scope: reminders:writestring: The ID of the reminderobject: Schema for successful response from reminders.delete method
Gets information about a reminder.
slack.reminders_info({}, context)
object
string: Authentication token. Requires scope: reminders:readstring: The ID of the reminderobject: Schema for successful response from reminders.info method
Lists all reminders created by or for a given user.
slack.reminders_list({}, context)
object
string: Authentication token. Requires scope: reminders:readobject: Schema for successful response from reminders.list method
array
Starts a Real Time Messaging session.
slack.rtm_connect({
"token": ""
}, context)
object
boolean: Only deliver presence events when requested by subscription. See presence subscriptions.string: Authentication token. Requires scope: rtm:streamboolean: Batch presence deliveries via subscription. Enabling changes the shape of presence_change events. See batch presence.object: Schema for successful response from rtm.connect method
object
stringobject
stringstringstringSearches for messages matching a query.
slack.search_messages({
"query": "",
"token": ""
}, context)
object
string: Change sort direction to ascending (asc) or descending (desc).string: Search query.string: Return matches sorted by either score or timestamp.integer: Pass the number of results you want per "page". Maximum of 100.string: Authentication token. Requires scope: search:readboolean: Pass a value of true to enable query highlight markers (see below).integerobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Adds a star to an item.
slack.stars_add({
"token": ""
}, context)
object
string: Authentication token. Requires scope: stars:writestring: Channel to add star to, or channel where the message to add star to was posted (used with timestamp).string: File to add star to.string: File comment to add star to.string: Timestamp of the message to add star to.object: Schema for successful response from stars.add method
Lists stars for a user.
slack.stars_list({}, context)
object
stringstring: Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details.string: Authentication token. Requires scope: stars:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached.stringobject: Schema for successful response from stars.list method
array
Removes a star from an item.
slack.stars_remove({}, context)
object
string: Authentication token. Requires scope: stars:writestring: Channel to remove star from, or channel where the message to remove star from was posted (used with timestamp).string: File to remove star from.string: File comment to remove star from.number: Timestamp of the message to remove star from.object: Schema for successful response from stars.remove method
Gets the access logs for the current team.
slack.team_accessLogs({
"token": ""
}, context)
object
integerstring: Authentication token. Requires scope: adminintegerstring: End of time range of logs to include in results (inclusive).object: Schema for successful response from team.accessLogs method
array
object
integerstringintegerintegerstringstringstringstringstringGets billable users information for the current team.
slack.team_billableInfo({
"token": ""
}, context)
object
string: Authentication token. Requires scope: adminstring: A user to retrieve the billable information for. Defaults to all users.object: Schema for successful response from team.billableInfo method
objectGets information about the current team.
slack.team_info({
"token": ""
}, context)
object
string: Authentication token. Requires scope: team:readstring: Team to get info on, if omitted, will return information about the current team. Will only return team that the authenticated token is allowed to see through external shared channelsobject: Schema for successful response from team.info method
Gets the integration logs for the current team.
slack.team_integrationLogs({
"token": ""
}, context)
object
integerstring: Filter logs with this change type. Defaults to all logs.integer: Filter logs to this Slack app. Defaults to all logs.string: Authentication token. Requires scope: adminstring: Filter logs generated by this user’s actions. Defaults to all logs.integer: Filter logs to this service. Defaults to all logs.stringobject: Schema for successful response from team.integrationLogs method
array
object
stringstringstringstringstringstringstringRetrieve a team's profile.
slack.team_profile_get({
"token": ""
}, context)
object
string: Authentication token. Requires scope: users.profile:readstring: Filter by visibility.object: Schema for successful response from team.profile.get method
object
array
Create a User Group
slack.usergroups_create({
"token": "",
"name": ""
}, context)
object
string: Authentication token. Requires scope: usergroups:writestring: A comma separated string of encoded channel IDs for which the User Group uses as a default.string: A short description of the User Group.string: A mention handle. Must be unique among channels, users and User Groups.boolean: Include the number of users in each User Group.string: A name for the User Group. Must be unique among User Groups.object: Schema for successful response from usergroups.create method
Disable an existing User Group
slack.usergroups_disable({
"token": "",
"usergroup": ""
}, context)
object
string: Authentication token. Requires scope: usergroups:writeboolean: Include the number of users in the User Group.string: The encoded ID of the User Group to disable.object: Schema for successful response from usergroups.disable method
Enable a User Group
slack.usergroups_enable({
"token": "",
"usergroup": ""
}, context)
object
string: Authentication token. Requires scope: usergroups:writeboolean: Include the number of users in the User Group.string: The encoded ID of the User Group to enable.object: Schema for successful response from usergroups.enable method
List all User Groups for a team
slack.usergroups_list({
"token": ""
}, context)
object
boolean: Include the list of users for each User Group.string: Authentication token. Requires scope: usergroups:readboolean: Include the number of users in each User Group.boolean: Include disabled User Groups.object: Schema for successful response from usergroups.list method
array
Update an existing User Group
slack.usergroups_update({
"token": "",
"usergroup": ""
}, context)
object
string: Authentication token. Requires scope: usergroups:writestring: A comma separated string of encoded channel IDs for which the User Group uses as a default.string: A short description of the User Group.string: A mention handle. Must be unique among channels, users and User Groups.boolean: Include the number of users in the User Group.string: A name for the User Group. Must be unique among User Groups.string: The encoded ID of the User Group to update.object: Schema for successful response from usergroups.update method
List all users in a User Group
slack.usergroups_users_list({
"token": "",
"usergroup": ""
}, context)
object
string: Authentication token. Requires scope: usergroups:readboolean: Allow results that involve disabled User Groups.string: The encoded ID of the User Group to update.object: Schema for successful response from usergroups.users.list method
array
Update the list of users for a User Group
slack.usergroups_users_update({
"token": "",
"usergroup": "",
"users": ""
}, context)
object
string: Authentication token. Requires scope: usergroups:writeboolean: Include the number of users in the User Group.string: The encoded ID of the User Group to update.string: A comma separated string of encoded user IDs that represent the entire list of users for the User Group.object: Schema for successful response from usergroups.users.update method
List conversations the calling user may access.
slack.users_conversations({}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: conversations:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer no larger than 1000.string: Browse conversations by a specific user ID's membership. Non-public channels are restricted to those where the calling user shares membership.boolean: Set to true to exclude archived channels from the liststring: Mix and match channel types by providing a comma-separated list of any combination of public_channel, private_channel, mpim, imobject: Schema for successful response from users.conversations method. Returned conversation objects do not include num_members or is_member
array
object
stringDelete the user profile photo
slack.users_deletePhoto({
"token": ""
}, context)
object
string: Authentication token. Requires scope: users.profile:writeobject: Schema for successful response from users.deletePhoto method
Gets user presence information.
slack.users_getPresence({
"token": ""
}, context)
object
string: Authentication token. Requires scope: users:readstring: User to get presence info on. Defaults to the authed user.object: Generated from users.getPresence with shasum e7251aec575d8863f9e0eb38663ae9dc26655f65
booleanintegerintegerbooleanbooleanstringGet a user's identity.
slack.users_identity({}, context)
object
string: Authentication token. Requires scope: identity.basicGets information about a user.
slack.users_info({
"token": ""
}, context)
object
string: Authentication token. Requires scope: users:readstring: User to get info onboolean: Set this to true to receive the locale for this user. Defaults to falseobject: Schema for successful response from users.info method
Lists all users in a Slack team.
slack.users_list({}, context)
object
string: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.string: Authentication token. Requires scope: users:readinteger: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.boolean: Set this to true to receive the locale for users. Defaults to falseobject: Schema for successful response from users.list method
integerarray
Find a user with an email address.
slack.users_lookupByEmail({}, context)
object
string: Authentication token. Requires scope: users:read.emailstring: An email address belonging to a user in the workspaceobject: Schema for successful response from users.lookupByEmail method
Retrieves a user's profile information.
slack.users_profile_get({}, context)
object
string: Authentication token. Requires scope: users.profile:readboolean: Include labels for each ID in custom profile fieldsstring: User to retrieve profile info forobject: Schema for successful response from users.profile.get method
Set the profile information for a user.
slack.users_profile_set({}, context)
object
string: Authentication token. Requires scope: users.profile:writestring: Name of a single key to set. Usable only if profile is not passed.string: Collection of key:value pairs presented as a URL-encoded JSON hash. At most 50 fields may be set. Each field name is limited to 255 characters.string: ID of user to change. This argument may only be specified by team admins on paid teams.string: Value to set a single key to. Usable only if profile is not passed.object: Schema for successful response from users.profile.set method
stringMarked a user as active. Deprecated and non-functional.
slack.users_setActive({
"token": ""
}, context)
object
string: Authentication token. Requires scope: users:writeobject: This method either only returns a brief OK response or a verbose schema is not available for this method.
Set the user profile photo
slack.users_setPhoto({}, context)
object
integer: Width/height of crop box (always square)integer: X coordinate of top-left corner of crop boxinteger: Y coordinate of top-left corner of crop boxstring: File contents via multipart/form-data.string: Authentication token. Requires scope: users.profile:writeobject: Schema for successful response from users.setPhoto method
object
stringstringstringstringstringstringstringstringstringManually sets user presence.
slack.users_setPresence({
"token": "",
"presence": ""
}, context)
object
string: Authentication token. Requires scope: users:writestring: Either auto or awayobject: Schema for successful response from users.setPresence method
Open a view for a user.
slack.views_open({
"token": "",
"trigger_id": "",
"view": ""
}, context)
object
string: Authentication token. Requires scope: nonestring: Exchange a trigger to post to the user.string: A view payload. This must be a JSON-encoded string.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Publish a static view for a User.
slack.views_publish({
"token": "",
"user_id": "",
"view": ""
}, context)
object
string: A string that represents view state to protect against possible race conditions.string: Authentication token. Requires scope: nonestring: id of the user you want publish a view to.string: A view payload. This must be a JSON-encoded string.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Push a view onto the stack of a root view.
slack.views_push({
"token": "",
"trigger_id": "",
"view": ""
}, context)
object
string: Authentication token. Requires scope: nonestring: Exchange a trigger to post to the user.string: A view payload. This must be a JSON-encoded string.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
Update an existing view.
slack.views_update({
"token": ""
}, context)
object
string: A string that represents view state to protect against possible race conditions.string: A unique identifier of the view to be updated. Either view_id or external_id is required.string: Authentication token. Requires scope: nonestring: A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.string: A view payload This must be a JSON-encoded string.object: This method either only returns a brief OK response or a verbose schema is not available for this method.
array: This is a very loose definition, in the future, we'll populate this with deeper schema in this definition namespace.
object
stringstringstringstringstringstringstringstringstringstringstringstringstringboolean (values: false)boolean (values: true)objectstringstringstringstringstringstringstringobject
booleanobject
stringstringstringstringintegerobject
integerbooleanbooleanbooleanbooleanbooleanintegerbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanarray
stringstringintegerarray
array
numberobject
integerstringobject
integerstringintegerintegerintegerobject
stringintegerbooleanbooleanintegerarray
array
integerarrayobject
booleanbooleanarray
object
array
integerintegerintegerbooleanbooleanstringstringstringstringarray
booleanintegerarray
booleanbooleanbooleanbooleanstringstringstringbooleanintegerintegerintegerstringstringarray
stringstringbooleanarray
objectintegerstringstringintegerintegerstringstringintegerintegerstringintegerintegerstringstringintegerintegerstringstringintegerintegerstringintegerintegerstringintegerstringintegerstringstringstringstringobject
integerbooleanbooleanbooleanintegerbooleanbooleanbooleanbooleanbooleanarray
stringstringintegernumberobject
integerstringobject
integerstringintegerintegerobject
stringstringstringstringstringstringstringbooleanobject
integerbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleannumberobject
array
object
stringintegerintegerintegerstringintegerstringbooleanarray
object
stringbooleanbooleanbooleanstringstringstringarray
stringarray
array
object
integerarray
integerbooleanstringstringstringstringintegerbooleanstringobject
integerintegerintegerintegerintegerintegerobject
integerstringarray
object
integerbooleanstringintegerobject
array
array
booleanobject
stringarray
stringobject
booleanintegerintegerintegerstringstringstringbooleanbooleanbooleanstringobject
array
array
integerarray
object
booleanstringintegerintegerbooleanstringstringstringstringbooleanbooleanintegerintegerintegerintegerstringbooleanbooleanstring (values: , std, plus, compliance, enterprise)object
stringstringstringbooleanstringarray
stringnumberarray
stringstring (values: text, date, link, mailto, options_list, user)object
booleanstringstringstringstringobjectstringintegerstringstringstringstringstringstringstringstringstringbooleanstringstringstringstringstringstringintegerstringstringstringobject
stringstringstringstringstringbooleanbooleanstringstringstringFAQs
DataFire integration for Slack Web API
The npm package @datafire/slack receives a total of 5 weekly downloads. As such, @datafire/slack popularity was classified as not popular.
We found that @datafire/slack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.