slack
Module slack
Definitions
ballerinax/slack Ballerina library
Overview
Slack is a collaboration platform for teams, offering real-time messaging, file sharing, and integrations with various tools. It helps streamline communication and enhance productivity through organized channels and direct messaging.
Setup guide
Step 1: Sign in to Slack
-
To use the Slack Connector you need to be signed in to Slack. If you haven't created an account already, you can create it here.
Step 2: Create a new Slack application
-
Navigate to your apps in Slack API and create a new Slack app.
-
Provide an app name and choose a workspace of your choice.
-
Click on the "Create App" button.
Step 3: Add scopes to the token
-
Once the application is created, go to the "Add Features and Functionality" section and click on "Permissions" to set the token scopes.
-
In the User Token Scopes section set the following token scopes.
-
Install the application to workspace.
-
Copy the OAuth token that is generated upon installation.
Quickstart
To use the slack connector in your Ballerina application, modify the .bal file as follows:
Step 1: Import the module
Import the slack module.
import ballerinax/slack;
Step 2: Instantiate a new connector
Assign the OAuth token obtained to the variable token, and then initialize a new instance of the slack client by passing the token.
configurable string token = ?; slack:Client slack = check new({ auth: { token } });
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
Send a Text Message to General Channel
json postMessageResponse = check slack->/chat\.postMessage.post({channel: "general", text: "hello"});
Step 4: Run the Ballerina application
bal run
Examples
The Slack connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
-
Automated Summary Report - This use case demonstrates how the Slack API can be utilized to generate a summarized report of daily stand up chats in the general channel.
-
Survey Feedback Analysis - This use case demonstrates how the Slack API can be utilized to perform a company-wide survey by creating a dedicated channel to receive and track feedback replies.
Clients
slack: Client
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.
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://slack.com/api" - URL of the target service
get admin.apps.approved.list
function get admin\.apps\.approved\.list(map<string|string[]> headers, *Admin_apps_approved_listQueries queries) returns DefaultSuccessResponse|errorget admin.apps.requests.list
function get admin\.apps\.requests\.list(map<string|string[]> headers, *Admin_apps_requests_listQueries queries) returns DefaultSuccessResponse|errorget admin.apps.restricted.list
function get admin\.apps\.restricted\.list(map<string|string[]> headers, *Admin_apps_restricted_listQueries queries) returns DefaultSuccessResponse|errorget admin.conversations.ekm.listOriginalConnectedChannelInfo
function get admin\.conversations\.ekm\.listOriginalConnectedChannelInfo(map<string|string[]> headers, *Admin_conversations_ekm_listOriginalConnectedChannelInfoQueries queries) returns DefaultSuccessResponse|errorParameters
get admin.conversations.getConversationPrefs
function get admin\.conversations\.getConversationPrefs(map<string|string[]> headers, *Admin_conversations_getConversationPrefsQueries queries) returns json|errorParameters
get admin.conversations.getTeams
function get admin\.conversations\.getTeams(map<string|string[]> headers, *Admin_conversations_getTeamsQueries queries) returns json|errorParameters
- queries *Admin_conversations_getTeamsQueries -
get admin.conversations.restrictAccess.listGroups
function get admin\.conversations\.restrictAccess\.listGroups(map<string|string[]> headers, *Admin_conversations_restrictAccess_listGroupsQueries queries) returns DefaultSuccessResponse|errorParameters
get admin.conversations.search
function get admin\.conversations\.search(map<string|string[]> headers, *Admin_conversations_searchQueries queries) returns json|errorget admin.emoji.list
function get admin\.emoji\.list(map<string|string[]> headers, *Admin_emoji_listQueries queries) returns DefaultSuccessResponse|errorget admin.inviteRequests.approved.list
function get admin\.inviteRequests\.approved\.list(map<string|string[]> headers, *Admin_inviteRequests_approved_listQueries queries) returns DefaultSuccessResponse|errorParameters
- queries *Admin_inviteRequests_approved_listQueries -
get admin.inviteRequests.denied.list
function get admin\.inviteRequests\.denied\.list(map<string|string[]> headers, *Admin_inviteRequests_denied_listQueries queries) returns DefaultSuccessResponse|errorParameters
- queries *Admin_inviteRequests_denied_listQueries -
get admin.inviteRequests.list
function get admin\.inviteRequests\.list(map<string|string[]> headers, *Admin_inviteRequests_listQueries queries) returns DefaultSuccessResponse|errorget admin.teams.admins.list
function get admin\.teams\.admins\.list(map<string|string[]> headers, *Admin_teams_admins_listQueries queries) returns DefaultSuccessResponse|errorget admin.teams.list
function get admin\.teams\.list(map<string|string[]> headers, *Admin_teams_listQueries queries) returns DefaultSuccessResponse|errorget admin.teams.owners.list
function get admin\.teams\.owners\.list(map<string|string[]> headers, *Admin_teams_owners_listQueries queries) returns DefaultSuccessResponse|errorget admin.teams.settings.info
function get admin\.teams\.settings\.info(map<string|string[]> headers, *Admin_teams_settings_infoQueries queries) returns DefaultSuccessResponse|errorget admin.usergroups.listChannels
function get admin\.usergroups\.listChannels(map<string|string[]> headers, *Admin_usergroups_listChannelsQueries queries) returns DefaultSuccessResponse|errorParameters
- queries *Admin_usergroups_listChannelsQueries -
get admin.users.list
function get admin\.users\.list(map<string|string[]> headers, *Admin_users_listQueries queries) returns DefaultSuccessResponse|errorget api.test
function get api\.test(map<string|string[]> headers, *Api_testQueries queries) returns json|errorget apps.event.authorizations.list
function get apps\.event\.authorizations\.list(map<string|string[]> headers, *Apps_event_authorizations_listQueries queries) returns DefaultSuccessResponse|errorParameters
- queries *Apps_event_authorizations_listQueries -
get apps.permissions.info
get apps.permissions.request
function get apps\.permissions\.request(map<string|string[]> headers, *Apps_permissions_requestQueries queries) returns json|errorget apps.permissions.resources.list
function get apps\.permissions\.resources\.list(map<string|string[]> headers, *Apps_permissions_resources_listQueries queries) returns json|errorParameters
- queries *Apps_permissions_resources_listQueries -
get apps.permissions.scopes.list
get apps.permissions.users.list
function get apps\.permissions\.users\.list(map<string|string[]> headers, *Apps_permissions_users_listQueries queries) returns DefaultSuccessResponse|errorget apps.permissions.users.request
function get apps\.permissions\.users\.request(map<string|string[]> headers, *Apps_permissions_users_requestQueries queries) returns DefaultSuccessResponse|errorParameters
- queries *Apps_permissions_users_requestQueries -
get apps.uninstall
function get apps\.uninstall(map<string|string[]> headers, *Apps_uninstallQueries queries) returns json|errorget auth.revoke
function get auth\.revoke(map<string|string[]> headers, *Auth_revokeQueries queries) returns json|errorget auth.test
get bots.info
function get bots\.info(map<string|string[]> headers, *Bots_infoQueries queries) returns json|errorget calls.info
function get calls\.info(map<string|string[]> headers, *Calls_infoQueries queries) returns DefaultSuccessResponse|errorget chat.getPermalink
function get chat\.getPermalink(map<string|string[]> headers, *Chat_getPermalinkQueries queries) returns json|errorget chat.scheduledMessages.list
function get chat\.scheduledMessages\.list(map<string|string[]> headers, *Chat_scheduledMessages_listQueries queries) returns json|errorget conversations.history
function get conversations\.history(map<string|string[]> headers, *Conversations_historyQueries queries) returns json|errorget conversations.info
function get conversations\.info(map<string|string[]> headers, *Conversations_infoQueries queries) returns json|errorget conversations.list
function get conversations\.list(map<string|string[]> headers, *Conversations_listQueries queries) returns json|errorget conversations.members
function get conversations\.members(map<string|string[]> headers, *Conversations_membersQueries queries) returns json|errorget conversations.replies
function get conversations\.replies(map<string|string[]> headers, *Conversations_repliesQueries queries) returns json|errorget dialog.open
function get dialog\.open(map<string|string[]> headers, *Dialog_openQueries queries) returns json|errorget dnd.info
function get dnd\.info(map<string|string[]> headers, *Dnd_infoQueries queries) returns json|errorget dnd.teamInfo
function get dnd\.teamInfo(map<string|string[]> headers, *Dnd_teamInfoQueries queries) returns DefaultSuccessResponse|errorget emoji.list
function get emoji\.list(map<string|string[]> headers) returns DefaultSuccessResponse|errorget files.info
function get files\.info(map<string|string[]> headers, *Files_infoQueries queries) returns json|errorget files.list
function get files\.list(map<string|string[]> headers, *Files_listQueries queries) returns json|errorget files.remote.info
function get files\.remote\.info(map<string|string[]> headers, *Files_remote_infoQueries queries) returns DefaultSuccessResponse|errorget files.remote.list
function get files\.remote\.list(map<string|string[]> headers, *Files_remote_listQueries queries) returns DefaultSuccessResponse|errorget files.remote.share
function get files\.remote\.share(map<string|string[]> headers, *Files_remote_shareQueries queries) returns DefaultSuccessResponse|errorget migration.exchange
function get migration\.exchange(map<string|string[]> headers, *Migration_exchangeQueries queries) returns json|errorget oauth.access
function get oauth\.access(map<string|string[]> headers, *Oauth_accessQueries queries) returns DefaultSuccessResponse|errorget oauth.token
function get oauth\.token(map<string|string[]> headers, *Oauth_tokenQueries queries) returns DefaultSuccessResponse|errorget oauth.v2.access
function get oauth\.v2\.access(map<string|string[]> headers, *Oauth_v2_accessQueries queries) returns DefaultSuccessResponse|errorget pins.list
function get pins\.list(map<string|string[]> headers, *Pins_listQueries queries) returns record {| items (record {| created int, created_by defs_user_id, file objs_file, 'type "file" |}|record {| channel defs_channel, created int, created_by defs_user_id, message objs_message, 'type "message" |})[], ok defs_ok_true |}|record {| count int, ok defs_ok_true |}[]|errorget reactions.get
function get reactions\.get(map<string|string[]> headers, *Reactions_getQueries queries) returns record {| channel defs_channel, message objs_message, ok defs_ok_true, 'type "message" |}|record {| file objs_file, ok defs_ok_true, 'type "file" |}|record {| comment objs_comment, file objs_file, ok defs_ok_true, 'type "file_comment" |}[]|errorget reactions.list
function get reactions\.list(map<string|string[]> headers, *Reactions_listQueries queries) returns json|errorget reminders.info
function get reminders\.info(map<string|string[]> headers, *Reminders_infoQueries queries) returns json|errorget reminders.list
get rtm.connect
function get rtm\.connect(map<string|string[]> headers, *Rtm_connectQueries queries) returns json|errorget search.messages
function get search\.messages(map<string|string[]> headers, *Search_messagesQueries queries) returns DefaultSuccessResponse|errorget stars.list
function get stars\.list(map<string|string[]> headers, *Stars_listQueries queries) returns json|errorget team.accessLogs
function get team\.accessLogs(map<string|string[]> headers, *Team_accessLogsQueries queries) returns json|errorget team.billableInfo
function get team\.billableInfo(map<string|string[]> headers, *Team_billableInfoQueries queries) returns DefaultSuccessResponse|errorget team.info
function get team\.info(map<string|string[]> headers, *Team_infoQueries queries) returns json|errorget team.integrationLogs
function get team\.integrationLogs(map<string|string[]> headers, *Team_integrationLogsQueries queries) returns json|errorget team.profile.get
function get team\.profile\.get(map<string|string[]> headers, *Team_profile_getQueries queries) returns json|errorget usergroups.list
function get usergroups\.list(map<string|string[]> headers, *Usergroups_listQueries queries) returns json|errorget usergroups.users.list
function get usergroups\.users\.list(map<string|string[]> headers, *Usergroups_users_listQueries queries) returns json|errorget users.conversations
function get users\.conversations(map<string|string[]> headers, *Users_conversationsQueries queries) returns json|errorget users.getPresence
function get users\.getPresence(map<string|string[]> headers, *Users_getPresenceQueries queries) returns json|errorget users.identity
function get users\.identity(map<string|string[]> headers) returns record {| ok defs_ok_true, team record {| id defs_team |}, user record {| id defs_user_id, name string |} |}|record {| ok defs_ok_true, team record {| id defs_team |}, user record {| email string, id defs_user_id, name string |} |}|record {| ok defs_ok_true, team record {| id defs_team |}, user record {| id defs_user_id, image_192 string, image_24 string, image_32 string, image_48 string, image_512 string, image_72 string, name string |} |}|record {| ok defs_ok_true, team record {| domain string, id defs_team, image_102 string, image_132 string, image_230 string, image_34 string, image_44 string, image_68 string, image_88 string, image_default boolean, name string |}, user record {| id defs_user_id, name string |} |}[]|errorget users.info
function get users\.info(map<string|string[]> headers, *Users_infoQueries queries) returns json|errorget users.list
function get users\.list(map<string|string[]> headers, *Users_listQueries queries) returns json|errorget users.lookupByEmail
function get users\.lookupByEmail(map<string|string[]> headers, *Users_lookupByEmailQueries queries) returns json|errorget users.profile.get
function get users\.profile\.get(map<string|string[]> headers, *Users_profile_getQueries queries) returns json|errorget views.open
function get views\.open(map<string|string[]> headers, *Views_openQueries queries) returns DefaultSuccessResponse|errorget views.publish
function get views\.publish(map<string|string[]> headers, *Views_publishQueries queries) returns DefaultSuccessResponse|errorget views.push
function get views\.push(map<string|string[]> headers, *Views_pushQueries queries) returns DefaultSuccessResponse|errorget views.update
function get views\.update(map<string|string[]> headers, *Views_updateQueries queries) returns DefaultSuccessResponse|errorget workflows.stepCompleted
function get workflows\.stepCompleted(map<string|string[]> headers, *Workflows_stepCompletedQueries queries) returns DefaultSuccessResponse|errorget workflows.stepFailed
function get workflows\.stepFailed(map<string|string[]> headers, *Workflows_stepFailedQueries queries) returns DefaultSuccessResponse|errorget workflows.updateStep
function get workflows\.updateStep(map<string|string[]> headers, *Workflows_updateStepQueries queries) returns DefaultSuccessResponse|errorpost admin.apps.approve
function post admin\.apps\.approve(admin_apps_approve_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.apps.restrict
function post admin\.apps\.restrict(admin_apps_restrict_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.conversations.archive
function post admin\.conversations\.archive(admin_conversations_archive_body payload, map<string|string[]> headers) returns json|errorpost admin.conversations.convertToPrivate
function post admin\.conversations\.convertToPrivate(admin_conversations_convertToPrivate_body payload, map<string|string[]> headers) returns json|errorParameters
post admin.conversations.create
function post admin\.conversations\.create(admin_conversations_create_body payload, map<string|string[]> headers) returns json|errorpost admin.conversations.delete
function post admin\.conversations\.delete(admin_conversations_delete_body payload, map<string|string[]> headers) returns json|errorpost admin.conversations.disconnectShared
function post admin\.conversations\.disconnectShared(admin_conversations_disconnectShared_body payload, map<string|string[]> headers) returns json|errorParameters
post admin.conversations.invite
function post admin\.conversations\.invite(admin_conversations_invite_body payload, map<string|string[]> headers) returns json|errorpost admin.conversations.rename
function post admin\.conversations\.rename(admin_conversations_rename_body payload, map<string|string[]> headers) returns json|errorpost admin.conversations.restrictAccess.addGroup
function post admin\.conversations\.restrictAccess\.addGroup(admin_conversations_restrictAccess_addGroup_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
post admin.conversations.restrictAccess.removeGroup
function post admin\.conversations\.restrictAccess\.removeGroup(admin_conversations_restrictAccess_removeGroup_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
post admin.conversations.setConversationPrefs
function post admin\.conversations\.setConversationPrefs(admin_conversations_setConversationPrefs_body payload, map<string|string[]> headers) returns json|errorParameters
post admin.conversations.setTeams
function post admin\.conversations\.setTeams(admin_conversations_setTeams_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.conversations.unarchive
function post admin\.conversations\.unarchive(admin_conversations_unarchive_body payload, map<string|string[]> headers) returns json|errorpost admin.emoji.add
function post admin\.emoji\.add(admin_emoji_add_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.emoji.addAlias
function post admin\.emoji\.addAlias(admin_emoji_addAlias_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.emoji.remove
function post admin\.emoji\.remove(admin_emoji_remove_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.emoji.rename
function post admin\.emoji\.rename(admin_emoji_rename_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.inviteRequests.approve
function post admin\.inviteRequests\.approve(record { invite_request_id string, team_id string } payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
post admin.inviteRequests.deny
function post admin\.inviteRequests\.deny(record { invite_request_id string, team_id string } payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
post admin.teams.create
function post admin\.teams\.create(admin_teams_create_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.teams.settings.setDefaultChannels
function post admin\.teams\.settings\.setDefaultChannels(admin_teams_settings_setDefaultChannels_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
post admin.teams.settings.setDescription
function post admin\.teams\.settings\.setDescription(admin_teams_settings_setDescription_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
- payload admin_teams_settings_setDescription_body -
post admin.teams.settings.setDiscoverability
function post admin\.teams\.settings\.setDiscoverability(admin_teams_settings_setDiscoverability_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
post admin.teams.settings.setIcon
function post admin\.teams\.settings\.setIcon(admin_teams_settings_setIcon_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.teams.settings.setName
function post admin\.teams\.settings\.setName(admin_teams_settings_setName_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.usergroups.addChannels
function post admin\.usergroups\.addChannels(admin_usergroups_addChannels_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.usergroups.addTeams
function post admin\.usergroups\.addTeams(admin_usergroups_addTeams_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.usergroups.removeChannels
function post admin\.usergroups\.removeChannels(admin_usergroups_removeChannels_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorParameters
- payload admin_usergroups_removeChannels_body -
post admin.users.assign
function post admin\.users\.assign(admin_users_assign_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.invite
function post admin\.users\.invite(admin_users_invite_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.remove
function post admin\.users\.remove(admin_users_remove_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.session.invalidate
function post admin\.users\.session\.invalidate(admin_users_session_invalidate_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.session.reset
function post admin\.users\.session\.reset(admin_users_session_reset_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.setAdmin
function post admin\.users\.setAdmin(admin_users_setAdmin_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.setExpiration
function post admin\.users\.setExpiration(admin_users_setExpiration_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost admin.users.setOwner
function post admin\.users\.setOwner(admin_users_setOwner_body payload, Admin_users_setOwnerHeaders headers) returns DefaultSuccessResponse|errorpost admin.users.setRegular
function post admin\.users\.setRegular(admin_users_setRegular_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost calls.add
function post calls\.add(calls_add_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost calls.end
function post calls\.end(calls_end_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost calls.participants.add
function post calls\.participants\.add(calls_participants_add_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost calls.participants.remove
function post calls\.participants\.remove(calls_participants_remove_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost calls.update
function post calls\.update(calls_update_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost chat.delete
function post chat\.delete(chat_delete_body payload, map<string|string[]> headers) returns json|errorpost chat.deleteScheduledMessage
function post chat\.deleteScheduledMessage(chat_deleteScheduledMessage_body payload, map<string|string[]> headers) returns json|errorpost chat.meMessage
function post chat\.meMessage(chat_meMessage_body payload, map<string|string[]> headers) returns json|errorpost chat.postEphemeral
function post chat\.postEphemeral(chat_postEphemeral_body payload, map<string|string[]> headers) returns json|errorpost chat.postMessage
function post chat\.postMessage(chat_postMessage_body payload, map<string|string[]> headers) returns json|errorpost chat.scheduleMessage
function post chat\.scheduleMessage(chat_scheduleMessage_body payload, map<string|string[]> headers) returns json|errorpost chat.unfurl
function post chat\.unfurl(chat_unfurl_body payload, map<string|string[]> headers) returns json|errorpost chat.update
function post chat\.update(chat_update_body payload, map<string|string[]> headers) returns json|errorpost conversations.archive
function post conversations\.archive(conversations_archive_body payload, map<string|string[]> headers) returns json|errorpost conversations.close
function post conversations\.close(conversations_close_body payload, map<string|string[]> headers) returns json|errorpost conversations.create
function post conversations\.create(conversations_create_body payload, map<string|string[]> headers) returns json|errorpost conversations.invite
function post conversations\.invite(conversations_invite_body payload, map<string|string[]> headers) returns json|errorpost conversations.join
function post conversations\.join(conversations_join_body payload, map<string|string[]> headers) returns json|errorpost conversations.kick
function post conversations\.kick(conversations_kick_body payload, map<string|string[]> headers) returns json|errorpost conversations.leave
function post conversations\.leave(conversations_leave_body payload, map<string|string[]> headers) returns json|errorpost conversations.mark
function post conversations\.mark(conversations_mark_body payload, map<string|string[]> headers) returns json|errorpost conversations.open
function post conversations\.open(conversations_open_body payload, map<string|string[]> headers) returns json|errorpost conversations.rename
function post conversations\.rename(conversations_rename_body payload, map<string|string[]> headers) returns json|errorpost conversations.setPurpose
function post conversations\.setPurpose(conversations_setPurpose_body payload, map<string|string[]> headers) returns json|errorpost conversations.setTopic
function post conversations\.setTopic(conversations_setTopic_body payload, map<string|string[]> headers) returns json|errorpost conversations.unarchive
function post conversations\.unarchive(conversations_unarchive_body payload, map<string|string[]> headers) returns json|errorpost dnd.endDnd
post dnd.endSnooze
post dnd.setSnooze
function post dnd\.setSnooze(dnd_setSnooze_body payload, map<string|string[]> headers) returns json|errorpost files.comments.delete
function post files\.comments\.delete(files_comments_delete_body payload, map<string|string[]> headers) returns json|errorpost files.delete
function post files\.delete(files_delete_body payload, map<string|string[]> headers) returns json|errorpost files.remote.add
function post files\.remote\.add(files_remote_add_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost files.remote.remove
function post files\.remote\.remove(files_remote_remove_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost files.remote.update
function post files\.remote\.update(files_remote_update_body payload, map<string|string[]> headers) returns DefaultSuccessResponse|errorpost files.revokePublicURL
function post files\.revokePublicURL(files_revokePublicURL_body payload, map<string|string[]> headers) returns json|errorpost files.sharedPublicURL
function post files\.sharedPublicURL(files_sharedPublicURL_body payload, map<string|string[]> headers) returns json|errorpost files.upload
function post files\.upload(files_upload_body payload, map<string|string[]> headers) returns json|errorpost pins.add
function post pins\.add(pins_add_body payload, map<string|string[]> headers) returns json|errorpost pins.remove
function post pins\.remove(pins_remove_body payload, map<string|string[]> headers) returns json|errorpost reactions.add
function post reactions\.add(reactions_add_body payload, map<string|string[]> headers) returns json|errorpost reactions.remove
function post reactions\.remove(reactions_remove_body payload, map<string|string[]> headers) returns json|errorpost reminders.add
function post reminders\.add(reminders_add_body payload, map<string|string[]> headers) returns json|errorpost reminders.complete
function post reminders\.complete(reminders_complete_body payload, map<string|string[]> headers) returns json|errorpost reminders.delete
function post reminders\.delete(reminders_delete_body payload, map<string|string[]> headers) returns json|errorpost stars.add
function post stars\.add(stars_add_body payload, map<string|string[]> headers) returns json|errorpost stars.remove
function post stars\.remove(stars_remove_body payload, map<string|string[]> headers) returns json|errorpost usergroups.create
function post usergroups\.create(usergroups_create_body payload, map<string|string[]> headers) returns json|errorpost usergroups.disable
function post usergroups\.disable(usergroups_disable_body payload, map<string|string[]> headers) returns json|errorpost usergroups.enable
function post usergroups\.enable(usergroups_enable_body payload, map<string|string[]> headers) returns json|errorpost usergroups.update
function post usergroups\.update(usergroups_update_body payload, map<string|string[]> headers) returns json|errorpost usergroups.users.update
function post usergroups\.users\.update(usergroups_users_update_body payload, map<string|string[]> headers) returns json|errorpost users.deletePhoto
function post users\.deletePhoto(users_deletePhoto_body payload, map<string|string[]> headers) returns json|errorpost users.profile.set
function post users\.profile\.set(users_profile_set_body payload, map<string|string[]> headers) returns json|errorpost users.setActive
post users.setPhoto
function post users\.setPhoto(users_setPhoto_body payload, map<string|string[]> headers) returns json|errorpost users.setPresence
function post users\.setPresence(users_setPresence_body payload, map<string|string[]> headers) returns json|errorRecords
slack: admin_apps_approve_body
Fields
- app_id string? - The id of the app to approve.
- request_id string? - The id of the request to approve.
- team_id string? -
slack: Admin_apps_approved_listQueries
Represents the Queries record for the operation: admin_apps_approved_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
- team_id string? -
- enterprise_id string? -
slack: Admin_apps_requests_listQueries
Represents the Queries record for the operation: admin_apps_requests_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
- team_id string? -
slack: admin_apps_restrict_body
Fields
- app_id string? - The id of the app to restrict.
- request_id string? - The id of the request to restrict.
- team_id string? -
slack: Admin_apps_restricted_listQueries
Represents the Queries record for the operation: admin_apps_restricted_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
- team_id string? -
- enterprise_id string? -
slack: admin_conversations_archive_body
Fields
- channel_id string - The channel to archive.
slack: admin_conversations_convertToPrivate_body
Fields
- channel_id string - The channel to convert to private.
slack: admin_conversations_create_body
Fields
- description string? - Description of the public or private channel to create.
- is_private boolean - When
true, creates a private channel instead of a public channel
- name string - Name of the public or private channel to create.
- org_wide boolean? - When
true, the channel will be available org-wide. Note: if the channel is notorg_wide=true, you must specify ateam_idfor this channel
- team_id string? - The workspace to create the channel in. Note: this argument is required unless you set
org_wide=true.
slack: admin_conversations_delete_body
Fields
- channel_id string - The channel to delete.
slack: admin_conversations_disconnectShared_body
Fields
- channel_id string - The channel to be disconnected from some workspaces.
- leaving_team_ids string? - The team to be removed from the channel. Currently only a single team id can be specified.
slack: Admin_conversations_ekm_listOriginalConnectedChannelInfoQueries
Represents the Queries record for the operation: admin_conversations_ekm_listOriginalConnectedChannelInfo
Fields
- channel_ids string? - A comma-separated list of channels to filter to.
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page.
- team_ids string? - A comma-separated list of the workspaces to which the channels you would like returned belong.
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
slack: Admin_conversations_getConversationPrefsQueries
Represents the Queries record for the operation: admin_conversations_getConversationPrefs
Fields
- channel_id string - The channel to get preferences for.
slack: Admin_conversations_getTeamsQueries
Represents the Queries record for the operation: admin_conversations_getTeams
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
- channel_id string - The channel to determine connected workspaces within the organization for.
slack: admin_conversations_invite_body
Fields
- channel_id string - The channel that the users will be invited to.
- user_ids string - The users to invite.
slack: admin_conversations_rename_body
Fields
- channel_id string - The channel to rename.
- name string -
slack: admin_conversations_restrictAccess_addGroup_body
Fields
- channel_id string - The channel to link this group to.
- team_id string? - The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
- token string - Authentication token. Requires scope:
admin.conversations:write
slack: Admin_conversations_restrictAccess_listGroupsQueries
Represents the Queries record for the operation: admin_conversations_restrictAccess_listGroups
Fields
- team_id string? - The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
- channel_id string -
slack: admin_conversations_restrictAccess_removeGroup_body
Fields
- channel_id string - The channel to remove the linked group from.
- team_id string - The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
- token string - Authentication token. Requires scope:
admin.conversations:write
slack: Admin_conversations_searchQueries
Represents the Queries record for the operation: admin_conversations_search
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page.
- search_channel_types string? - The type of channel to include or exclude in the search. For example
privatewill search private channels, whileprivate_excludewill exclude them. For a full list of types, check the Types section.
- team_ids string? - Comma separated string of team IDs, signifying the workspaces to search through.
- query string? - Name of the the channel to query by.
- 'limit int? - Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.
- sort string? - Possible values are
relevant(search ranking based on what we think is closest),name(alphabetical),member_count(number of users in the channel), andcreated(date channel was created). You can optionally pair this with thesort_dirarg to change how it is sorted
- sort_dir string? - Sort direction. Possible values are
ascfor ascending order like (1, 2, 3) or (a, b, c), anddescfor descending order like (3, 2, 1) or (c, b, a)
slack: admin_conversations_setConversationPrefs_body
Fields
- channel_id string - The channel to set the prefs for
- prefs string - The prefs for this channel in a stringified JSON format.
slack: admin_conversations_setTeams_body
Fields
- channel_id string - The encoded
channel_idto add or remove to workspaces.
- org_channel boolean? - True if channel has to be converted to an org channel
- target_team_ids string? - A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.
- team_id string? - The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.
slack: admin_conversations_unarchive_body
Fields
- channel_id string - The channel to unarchive.
slack: admin_emoji_add_body
Fields
- name string - The name of the emoji to be removed. Colons (
:myemoji:) around the value are not required, although they may be included.
- token string - Authentication token. Requires scope:
admin.teams:write
- url string - The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best.
slack: admin_emoji_addAlias_body
Fields
- alias_for string - The alias of the emoji.
- name string - The name of the emoji to be aliased. Colons (
:myemoji:) around the value are not required, although they may be included.
- token string - Authentication token. Requires scope:
admin.teams:write
slack: Admin_emoji_listQueries
Represents the Queries record for the operation: admin_emoji_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
slack: admin_emoji_remove_body
Fields
- name string - The name of the emoji to be removed. Colons (
:myemoji:) around the value are not required, although they may be included.
- token string - Authentication token. Requires scope:
admin.teams:write
slack: admin_emoji_rename_body
Fields
- name string - The name of the emoji to be renamed. Colons (
:myemoji:) around the value are not required, although they may be included.
- new_name string - The new name of the emoji.
- token string - Authentication token. Requires scope:
admin.teams:write
slack: Admin_inviteRequests_approved_listQueries
Represents the Queries record for the operation: admin_inviteRequests_approved_list
Fields
- cursor string? - Value of the
next_cursorfield sent as part of the previous API response
- 'limit int? - The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive
- team_id string? - ID for the workspace where the invite requests were made.
slack: Admin_inviteRequests_denied_listQueries
Represents the Queries record for the operation: admin_inviteRequests_denied_list
Fields
- cursor string? - Value of the
next_cursorfield sent as part of the previous api response
- 'limit int? - The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive
- team_id string? - ID for the workspace where the invite requests were made.
slack: Admin_inviteRequests_listQueries
Represents the Queries record for the operation: admin_inviteRequests_list
Fields
- cursor string? - Value of the
next_cursorfield sent as part of the previous API response
- 'limit int? - The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive
- team_id string? - ID for the workspace where the invite requests were made.
slack: Admin_teams_admins_listQueries
Represents the Queries record for the operation: admin_teams_admins_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page.
- 'limit int? - The maximum number of items to return.
- team_id string -
slack: admin_teams_create_body
Fields
- team_description string? - Description for the team.
- team_discoverability string? - Who can join the team. A team's discoverability can be
open,closed,invite_only, orunlisted.
- team_domain string - Team domain (for example, slacksoftballteam).
- team_name string - Team name (for example, Slack Softball Team).
slack: Admin_teams_listQueries
Represents the Queries record for the operation: admin_teams_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page.
- 'limit int? - The maximum number of items to return. Must be between 1 - 100 both inclusive.
slack: Admin_teams_owners_listQueries
Represents the Queries record for the operation: admin_teams_owners_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page.
- 'limit int? - The maximum number of items to return. Must be between 1 - 1000 both inclusive.
- team_id string -
slack: Admin_teams_settings_infoQueries
Represents the Queries record for the operation: admin_teams_settings_info
Fields
- team_id string -
slack: admin_teams_settings_setDefaultChannels_body
Fields
- channel_ids string - An array of channel IDs.
- team_id string - ID for the workspace to set the default channel for.
- token string - Authentication token. Requires scope:
admin.teams:write
slack: admin_teams_settings_setDescription_body
Fields
- description string - The new description for the workspace.
- team_id string - ID for the workspace to set the description for.
slack: admin_teams_settings_setDiscoverability_body
Fields
- discoverability string - This workspace's discovery setting. It must be set to one of
open,invite_only,closed, orunlisted.
- team_id string - The ID of the workspace to set discoverability on.
slack: admin_teams_settings_setIcon_body
Fields
- image_url string - Image URL for the icon
- team_id string - ID for the workspace to set the icon for.
- token string - Authentication token. Requires scope:
admin.teams:write
slack: admin_teams_settings_setName_body
Fields
- name string - The new name of the workspace.
- team_id string - ID for the workspace to set the name for.
slack: admin_usergroups_addChannels_body
Fields
- channel_ids string - Comma separated string of channel IDs.
- team_id string? - The workspace to add default channels in.
- usergroup_id string - ID of the IDP group to add default channels for.
slack: admin_usergroups_addTeams_body
Fields
- auto_provision boolean? - When
true, this method automatically creates new workspace accounts for the IDP group members.
- team_ids string - A comma separated list of encoded team (workspace) IDs. Each workspace MUST belong to the organization associated with the token.
- usergroup_id string - An encoded usergroup (IDP Group) ID.
slack: Admin_usergroups_listChannelsQueries
Represents the Queries record for the operation: admin_usergroups_listChannels
Fields
- include_num_members boolean? - Flag to include or exclude the count of members per channel.
- usergroup_id string - ID of the IDP group to list default channels for.
- team_id string? - ID of the the workspace.
slack: admin_usergroups_removeChannels_body
Fields
- channel_ids string - Comma-separated string of channel IDs
- usergroup_id string - ID of the IDP Group
slack: admin_users_assign_body
Fields
- channel_ids string? - Comma separated values of channel IDs to add user in the new workspace.
- is_restricted boolean? - True if user should be added to the workspace as a guest.
- is_ultra_restricted boolean? - True if user should be added to the workspace as a single-channel guest.
- team_id string - The ID (
T1234) of the workspace.
- user_id string - The ID of the user to add to the workspace.
slack: admin_users_invite_body
Fields
- channel_ids string - A comma-separated list of
channel_ids for this user to join. At least one channel is required.
- custom_message string? - An optional message to send to the user in the invite email.
- email string - The email address of the person to invite.
- guest_expiration_ts 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.
- is_restricted boolean? - Is this user a multi-channel guest user? (default: false)
- is_ultra_restricted boolean? - Is this user a single channel guest user? (default: false)
- real_name string? - Full name of the user.
- resend boolean? - Allow this invite to be resent in the future if a user has not signed up yet. (default: false)
- team_id string - The ID (
T1234) of the workspace.
slack: Admin_users_listQueries
Represents the Queries record for the operation: admin_users_list
Fields
- cursor string? - Set
cursortonext_cursorreturned by the previous call to list items in the next page.
- 'limit int? - Limit for how many users to be retrieved per page
- team_id string - The ID (
T1234) of the workspace.
slack: admin_users_remove_body
Fields
- team_id string - The ID (
T1234) of the workspace.
- user_id string - The ID of the user to remove.
slack: admin_users_session_invalidate_body
Fields
- session_id int -
- team_id string - ID of the team that the session belongs to
slack: admin_users_session_reset_body
Fields
- mobile_only boolean? - Only expire mobile sessions (default: false)
- user_id string - The ID of the user to wipe sessions for
- web_only boolean? - Only expire web sessions (default: false)
slack: admin_users_setAdmin_body
Fields
- team_id string - The ID (
T1234) of the workspace.
- user_id string - The ID of the user to designate as an admin.
slack: admin_users_setExpiration_body
Fields
- expiration_ts int - Timestamp when guest account should be disabled.
- team_id string - The ID (
T1234) of the workspace.
- user_id string - The ID of the user to set an expiration for.
slack: admin_users_setOwner_body
Fields
- team_id string - The ID (
T1234) of the workspace.
- user_id string - Id of the user to promote to owner.
slack: Admin_users_setOwnerHeaders
Represents the Headers record for the operation: admin_users_setOwner
Fields
- token string - Authentication token. Requires scope:
admin.users:write
slack: admin_users_setRegular_body
Fields
- team_id string - The ID (
T1234) of the workspace.
- user_id string - The ID of the user to designate as a regular user.
slack: Api_testQueries
Represents the Queries record for the operation: api_test
Fields
- foo string? - example property to return
slack: Apps_event_authorizations_listQueries
Represents the Queries record for the operation: apps_event_authorizations_list
Fields
- cursor string? -
- 'limit int? -
- event_context string -
slack: Apps_permissions_requestQueries
Represents the Queries record for the operation: apps_permissions_request
Fields
- trigger_id string - Token used to trigger the permissions API
- scopes string - A comma separated list of scopes to request for
slack: Apps_permissions_resources_listQueries
Represents the Queries record for the operation: apps_permissions_resources_list
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- 'limit int? - The maximum number of items to return.
slack: Apps_permissions_users_listQueries
Represents the Queries record for the operation: apps_permissions_users_list
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- 'limit int? - The maximum number of items to return.
slack: Apps_permissions_users_requestQueries
Represents the Queries record for the operation: apps_permissions_users_request
Fields
- trigger_id string - Token used to trigger the request
- scopes string - A comma separated list of user scopes to request for
- user string - The user this scope is being requested for
slack: Apps_uninstallQueries
Represents the Queries record for the operation: apps_uninstall
Fields
- client_secret string? - Issued when you created your application.
- client_id string? - Issued when you created your application.
slack: Auth_revokeQueries
Represents the Queries record for the operation: auth_revoke
Fields
- test boolean? - Setting this parameter to
1triggers a testing mode where the specified token will not actually be revoked.
slack: blocks_inner
Fields
- 'type string -
slack: Bots_infoQueries
Represents the Queries record for the operation: bots_info
Fields
- bot string? - Bot user to get info on
slack: calls_add_body
Fields
- created_by string? - The valid Slack user ID of the user who created this Call. When this method is called with a user token, the
created_byfield is optional and defaults to the authed user of the token. Otherwise, the field is required.
- date_start int? - Call start time in UTC UNIX timestamp format
- desktop_app_join_url string? - When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL.
- external_display_id string? - An optional, human-readable ID supplied by the 3rd-party Call provider. If supplied, this ID will be displayed in the Call object.
- external_unique_id string - An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service.
- join_url string - The URL required for a client to join the Call.
- title string? - The name of the Call.
- users string? - The list of users to register as participants in the Call. Read more on how to specify users here.
slack: calls_end_body
Fields
- duration int? - Call duration in seconds
slack: Calls_infoQueries
Represents the Queries record for the operation: calls_info
Fields
slack: calls_participants_add_body
Fields
- users string - The list of users to add as participants in the Call. Read more on how to specify users here.
slack: calls_participants_remove_body
Fields
- users string - The list of users to remove as participants in the Call. Read more on how to specify users here.
slack: calls_update_body
Fields
- desktop_app_join_url string? - When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL.
- join_url string? - The URL required for a client to join the Call.
- title string? - The name of the Call.
slack: chat_delete_body
Fields
- channel string? - Channel containing the message to be deleted.
- ts decimal? - Timestamp of the message to be deleted.
slack: chat_deleteScheduledMessage_body
Fields
- channel string - The channel the scheduled_message is posting to
- scheduled_message_id string -
scheduled_message_idreturned from call to chat.scheduleMessage
slack: Chat_getPermalinkQueries
Represents the Queries record for the operation: chat_getPermalink
Fields
- channel string - The ID of the conversation or channel containing the message
- message_ts string - A message's
tsvalue, uniquely identifying it within a channel
slack: chat_meMessage_body
Fields
- channel string? - Channel to send message to. Can be a public channel, private group or IM channel. Can be an encoded ID, or a name.
- text string? - Text of the message to send.
slack: chat_postEphemeral_body
Fields
- as_user boolean? - 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.
- attachments string? - A JSON-based array of structured attachments, presented as a URL-encoded string.
- blocks string? - A JSON-based array of structured blocks, presented as a URL-encoded string.
- channel string - Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
- icon_emoji string? - Emoji to use as the icon for this message. Overrides
icon_url. Must be used in conjunction withas_userset tofalse, otherwise ignored. See authorship below.
- icon_url string? - URL to an image to use as the icon for this message. Must be used in conjunction with
as_userset to false, otherwise ignored. See authorship below.
- link_names boolean? - Find and link channel names and usernames.
- thread_ts string? - Provide another message's
tsvalue to post this message in a thread. Avoid using a reply'stsvalue; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread.
- user string -
idof the user who will receive the ephemeral message. The user should be in the channel specified by thechannelargument.
- username string? - Set your bot's user name. Must be used in conjunction with
as_userset to false, otherwise ignored. See authorship below.
slack: chat_postMessage_body
Fields
- as_user string? - Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.
- attachments string? - A JSON-based array of structured attachments, presented as a URL-encoded string.
- blocks string? - A JSON-based array of structured blocks, presented as a URL-encoded string.
- icon_emoji string? - Emoji to use as the icon for this message. Overrides
icon_url. Must be used in conjunction withas_userset tofalse, otherwise ignored. See authorship below.
- icon_url string? - URL to an image to use as the icon for this message. Must be used in conjunction with
as_userset to false, otherwise ignored. See authorship below.
- link_names boolean? - Find and link channel names and usernames.
- mrkdwn boolean? - Disable Slack markup parsing by setting to
false. Enabled by default.
- reply_broadcast boolean? - Used in conjunction with
thread_tsand indicates whether reply should be made visible to everyone in the channel or conversation. Defaults tofalse.
- thread_ts string? - Provide another message's
tsvalue to make this message a reply. Avoid using a reply'stsvalue; use its parent instead.
- unfurl_links boolean? - Pass true to enable unfurling of primarily text-based content.
- unfurl_media boolean? - Pass false to disable unfurling of media content.
- username string? - Set your bot's user name. Must be used in conjunction with
as_userset to false, otherwise ignored. See authorship below.
slack: Chat_scheduledMessages_listQueries
Represents the Queries record for the operation: chat_scheduledMessages_list
Fields
- cursor string? - For pagination purposes, this is the
cursorvalue returned from a previous call tochat.scheduledmessages.listindicating where you want to start this call from.
- oldest decimal? - A UNIX timestamp of the oldest value in the time range
- channel string? - The channel of the scheduled messages
- 'limit int? - Maximum number of original entries to return.
- latest decimal? - A UNIX timestamp of the latest value in the time range
slack: chat_scheduleMessage_body
Fields
- as_user boolean? - Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See chat.postMessage.
- attachments string? - A JSON-based array of structured attachments, presented as a URL-encoded string.
- blocks string? - A JSON-based array of structured blocks, presented as a URL-encoded string.
- link_names boolean? - Find and link channel names and usernames.
- parse string? - Change how messages are treated. Defaults to
none. See chat.postMessage.
- post_at string? - Unix EPOCH timestamp of time in future to send the message.
- reply_broadcast boolean? - Used in conjunction with
thread_tsand indicates whether reply should be made visible to everyone in the channel or conversation. Defaults tofalse.
- thread_ts decimal? - Provide another message's
tsvalue to make this message a reply. Avoid using a reply'stsvalue; use its parent instead.
- unfurl_links boolean? - Pass true to enable unfurling of primarily text-based content.
- unfurl_media boolean? - Pass false to disable unfurling of media content.
slack: chat_unfurl_body
Fields
- channel string - Channel ID of the message
- ts string - Timestamp of the message to add unfurl behavior to.
- unfurls string? - URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments.
- user_auth_message string? - Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior
- user_auth_required boolean? - Set to
trueor1to indicate the user must install your Slack app to trigger unfurls for this domain
- user_auth_url string? - Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded.
slack: chat_update_body
Fields
- attachments string? - A JSON-based array of structured attachments, presented as a URL-encoded string. This field is required when not presenting
text. If you don't include this field, the message's previousattachmentswill be retained. To remove previousattachments, include an empty array for this field.
- blocks string? - A JSON-based array of structured blocks, presented as a URL-encoded string. If you don't include this field, the message's previous
blockswill be retained. To remove previousblocks, include an empty array for this field.
- channel string - Channel containing the message to be updated.
- link_names string? - Find and link channel names and usernames. Defaults to
none. If you do not specify a value for this field, the original value set for the message will be overwritten with the default,none.
- parse string? - Change how messages are treated. Defaults to
client, unlikechat.postMessage. Accepts eithernoneorfull. If you do not specify a value for this field, the original value set for the message will be overwritten with the default,client.
- text string? - New text for the message, using the default formatting rules. It's not required when presenting
blocksorattachments.
- ts string - Timestamp of the message to be updated.
slack: ClientHttp1Settings
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy ProxyConfig? - Proxy server related options
slack: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings? - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings? - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- poolConfig PoolConfiguration? - Configurations associated with request pooling
- cache CacheConfig? - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker CircuitBreakerConfig? - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig RetryConfig? - Configurations associated with retrying
- responseLimits ResponseLimitConfigs? - Configurations associated with inbound response size limits
- secureSocket ClientSecureSocket? - SSL/TLS-related options
- proxy ProxyConfig? - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
slack: conversations_archive_body
Fields
- channel string? - ID of conversation to archive
slack: conversations_close_body
Fields
- channel string? - Conversation to close.
slack: conversations_create_body
Fields
- is_private boolean? - Create a private channel instead of a public one
- name string? - Name of the public or private channel to create
slack: Conversations_historyQueries
Represents the Queries record for the operation: conversations_history
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- inclusive boolean? - Include messages with latest or oldest timestamp in results only when either timestamp is specified.
- oldest decimal? - Start of time range of messages to include in results.
- channel string? - Conversation ID to fetch history for.
- 'limit int? - 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.
- latest decimal? - End of time range of messages to include in results.
slack: Conversations_infoQueries
Represents the Queries record for the operation: conversations_info
Fields
- include_num_members boolean? - Set to
trueto include the member count for the specified conversation. Defaults tofalse
- channel string? - Conversation ID to learn more about
- include_locale boolean? - Set this to
trueto receive the locale for this conversation. Defaults tofalse
slack: conversations_invite_body
Fields
- channel string? - The ID of the public or private channel to invite user(s) to.
- users string? - A comma separated list of user IDs. Up to 1000 users may be listed.
slack: conversations_join_body
Fields
- channel string? - ID of conversation to join
slack: conversations_kick_body
Fields
- channel string? - ID of conversation to remove user from.
- user string? - User ID to be removed.
slack: conversations_leave_body
Fields
- channel string? - Conversation to leave
slack: Conversations_listQueries
Represents the Queries record for the operation: conversations_list
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- types string? - Mix and match channel types by providing a comma-separated list of any combination of
public_channel,private_channel,mpim,im
- 'limit int? - 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.
- exclude_archived boolean? - Set to
trueto exclude archived channels from the list
slack: conversations_mark_body
Fields
- channel string? - Channel or conversation to set the read cursor for.
- ts decimal? - Unique identifier of message you want marked as most recently seen in this conversation.
slack: Conversations_membersQueries
Represents the Queries record for the operation: conversations_members
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- channel string? - ID of the conversation to retrieve members for
- 'limit int? - 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.
slack: conversations_open_body
Fields
- channel string? - Resume a conversation by supplying an
imormpim's ID. Or provide theusersfield instead.
- return_im boolean? - Boolean, indicates you want the full IM channel definition in the response.
- users 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
channelwhen not supplyingusers.
slack: conversations_rename_body
Fields
- channel string? - ID of conversation to rename
- name string? - New name for conversation.
slack: Conversations_repliesQueries
Represents the Queries record for the operation: conversations_replies
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- inclusive boolean? - Include messages with latest or oldest timestamp in results only when either timestamp is specified.
- oldest decimal? - Start of time range of messages to include in results.
- channel string? - Conversation ID to fetch thread from.
- 'limit int? - 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.
- ts decimal? - Unique identifier of a thread's parent message.
tsmust be the timestamp of an existing message with 0 or more replies. If there are no replies then just the single message referenced bytswill return - it is just an ordinary, unthreaded message.
- latest decimal? - End of time range of messages to include in results.
slack: conversations_setPurpose_body
Fields
- channel string? - Conversation to set the purpose of
- purpose string? - A new, specialer purpose
slack: conversations_setTopic_body
Fields
- channel string? - Conversation to set the topic of
- topic string? - The new topic string. Does not support formatting or linkification.
slack: conversations_unarchive_body
Fields
- channel string? - ID of conversation to unarchive
slack: DefaultSuccessResponse
This method either only returns a brief OK response or a verbose schema is not available for this method.
Fields
- ok defs_ok_true -
slack: defs_pinned_info
slack: Dialog_openQueries
Represents the Queries record for the operation: dialog_open
Fields
- dialog string - The dialog definition. This must be a JSON-encoded string.
- trigger_id string - Exchange a trigger to post to the user.
slack: Dnd_infoQueries
Represents the Queries record for the operation: dnd_info
Fields
- user string? - User to fetch status for (defaults to current user)
slack: dnd_setSnooze_body
Fields
- num_minutes string - Number of minutes, from now, to snooze until.
- token string - Authentication token. Requires scope:
dnd:write
slack: Dnd_teamInfoQueries
Represents the Queries record for the operation: dnd_teamInfo
Fields
- users string? - Comma-separated list of users to fetch Do Not Disturb status for
slack: files_comments_delete_body
Fields
- file string? - File to delete a comment from.
- id string? - The comment to delete.
slack: files_delete_body
Fields
- file string? - ID of file to delete.
slack: Files_infoQueries
Represents the Queries record for the operation: files_info
Fields
- cursor string? - Parameter for pagination. File comments are paginated for a single file. Set
cursorequal to thenext_cursorattribute returned by the previous request'sresponse_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.
- file string? - Specify a file by providing its ID.
- count string? -
- 'limit int? - 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.
- page string? -
slack: Files_listQueries
Represents the Queries record for the operation: files_list
Fields
- ts_from decimal? - Filter files created after this timestamp (inclusive).
- show_files_hidden_by_limit 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.
- ts_to decimal? - Filter files created before this timestamp (inclusive).
- channel string? - Filter files appearing in a specific channel, indicated by its ID.
- count string? -
- page string? -
- user string? - Filter files created by a single user.
slack: files_remote_add_body
Fields
- external_id string? - Creator defined GUID for the file.
- external_url string? - URL of the remote file.
- filetype string? - type of file
- indexable_file_contents string? - A text file (txt, pdf, doc, etc.) containing textual search terms that are used to improve discovery of the remote file.
- preview_image string? - Preview of the document via
multipart/form-data.
- title string? - Title of the file being shared.
- token string? - Authentication token. Requires scope:
remote_files:write
slack: Files_remote_infoQueries
Represents the Queries record for the operation: files_remote_info
Fields
- file string? - Specify a file by providing its ID.
- external_id string? - Creator defined GUID for the file.
slack: Files_remote_listQueries
Represents the Queries record for the operation: files_remote_list
Fields
- ts_from decimal? - Filter files created after this timestamp (inclusive).
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- ts_to decimal? - Filter files created before this timestamp (inclusive).
- channel string? - Filter files appearing in a specific channel, indicated by its ID.
- 'limit int? - The maximum number of items to return.
slack: files_remote_remove_body
Fields
- external_id string? - Creator defined GUID for the file.
- file string? - Specify a file by providing its ID.
- token string? - Authentication token. Requires scope:
remote_files:write
slack: Files_remote_shareQueries
Represents the Queries record for the operation: files_remote_share
Fields
- file string? - Specify a file registered with Slack by providing its ID. Either this field or
external_idor both are required.
- channels string? - Comma-separated list of channel IDs where the file will be shared.
- external_id string? - The globally unique identifier (GUID) for the file, as set by the app registering the file with Slack. Either this field or
fileor both are required.
slack: files_remote_update_body
Fields
- external_id string? - Creator defined GUID for the file.
- external_url string? - URL of the remote file.
- file string? - Specify a file by providing its ID.
- filetype string? - type of file
- indexable_file_contents string? - File containing contents that can be used to improve searchability for the remote file.
- preview_image string? - Preview of the document via
multipart/form-data.
- title string? - Title of the file being shared.
- token string? - Authentication token. Requires scope:
remote_files:write
slack: files_revokePublicURL_body
Fields
- file string? - File to revoke
slack: files_sharedPublicURL_body
Fields
- file string? - File to share
slack: files_upload_body
Fields
- channels string? - Comma-separated list of channel names or IDs where the file will be shared.
- content string? - File contents via a POST variable. If omitting this parameter, you must provide a
file.
- file string? - File contents via
multipart/form-data. If omitting this parameter, you must submitcontent.
- filename string? - Filename of file.
- initial_comment string? - The message text introducing the file in specified
channels.
- thread_ts decimal? - Provide another message's
tsvalue to upload this file as a reply. Never use a reply'stsvalue; use its parent instead.
- title string? - Title of file.
- token string? - Authentication token. Requires scope:
files:write:user
slack: Migration_exchangeQueries
Represents the Queries record for the operation: migration_exchange
Fields
- to_old boolean? - Specify
trueto convertWglobal user IDs to workspace-specificUIDs. Defaults tofalse.
- team_id string? - Specify team_id starts with
Tin case of Org Token
- users string - A comma-separated list of user ids, up to 400 per request
slack: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- refreshUrl string(default "https://slack.com/api/oauth.access") - Refresh URL
slack: Oauth_accessQueries
Represents the Queries record for the operation: oauth_access
Fields
- single_channel boolean? - Request the user to add your app only to a single channel. Only valid with a legacy workspace app.
- code string? - The
codeparam returned via the OAuth callback.
- client_secret string? - Issued when you created your application.
- redirect_uri string? - This must match the originally submitted URI (if one was sent).
- client_id string? - Issued when you created your application.
slack: Oauth_tokenQueries
Represents the Queries record for the operation: oauth_token
Fields
- single_channel boolean? - Request the user to add your app only to a single channel.
- code string? - The
codeparam returned via the OAuth callback.
- client_secret string? - Issued when you created your application.
- redirect_uri string? - This must match the originally submitted URI (if one was sent).
- client_id string? - Issued when you created your application.
slack: Oauth_v2_accessQueries
Represents the Queries record for the operation: oauth_v2_access
Fields
- code string - The
codeparam returned via the OAuth callback.
- client_secret string? - Issued when you created your application.
- redirect_uri string? - This must match the originally submitted URI (if one was sent).
- client_id string? - Issued when you created your application.
slack: objs_bot_profile
Fields
- app_id defs_app_id -
- deleted boolean -
- icons objs_bot_profile_icons -
- id defs_bot_id -
- name string -
- team_id defs_team -
- updated int -
slack: objs_bot_profile_icons
Fields
- image_36 string -
- image_48 string -
- image_72 string -
slack: objs_comment
Fields
- comment string -
- created int -
- id defs_comment_id -
- is_intro boolean -
- is_starred boolean? -
- num_stars int? -
- pinned_info defs_pinned_info? -
- pinned_to defs_channel[]? -
- reactions objs_reaction[]? -
- timestamp int -
- user defs_user_id -
slack: objs_file
Fields
- channels defs_channel_id[]? -
- comments_count int? -
- created int? -
- date_delete int? -
- display_as_bot boolean? -
- editable boolean? -
- editor defs_user_id? -
- external_id string? -
- external_type string? -
- external_url string? -
- filetype string? -
- groups defs_group_id[]? -
- has_rich_preview boolean? -
- id defs_file_id? -
- image_exif_rotation int? -
- ims defs_dm_id[]? -
- is_external boolean? -
- is_public boolean? -
- is_starred boolean? -
- is_tombstoned boolean? -
- last_editor defs_user_id? -
- mimetype string? -
- mode string? -
- name string? -
- non_owner_editable boolean? -
- num_stars int? -
- original_h int? -
- original_w int? -
- permalink string? -
- permalink_public string? -
- pinned_info defs_pinned_info? -
- pinned_to defs_channel[]? -
- pretty_type string? -
- preview string? -
- public_url_shared boolean? -
- reactions objs_reaction[]? -
- shares objs_file_shares? -
- size int? -
- source_team defs_team? -
- state string? -
- thumb_1024 string? -
- thumb_1024_h int? -
- thumb_1024_w int? -
- thumb_160 string? -
- thumb_360 string? -
- thumb_360_h int? -
- thumb_360_w int? -
- thumb_480 string? -
- thumb_480_h int? -
- thumb_480_w int? -
- thumb_64 string? -
- thumb_720 string? -
- thumb_720_h int? -
- thumb_720_w int? -
- thumb_80 string? -
- thumb_800 string? -
- thumb_800_h int? -
- thumb_800_w int? -
- thumb_960 string? -
- thumb_960_h int? -
- thumb_960_w int? -
- thumb_tiny string? -
- timestamp int? -
- title string? -
- updated int? -
- url_private string? -
- url_private_download string? -
- user string? -
- user_team defs_team? -
- username string? -
slack: objs_file_shares
Fields
- 'private record {||}? -
- 'public record {||}? -
slack: objs_message
Fields
- attachments objs_message_attachments[]? -
- blocks blocks? -
- bot_id (anydata)[]? -
- bot_profile objs_bot_profile? -
- client_msg_id string? -
- comment objs_comment? -
- display_as_bot boolean? -
- file objs_file? -
- files objs_file[]? -
- icons objs_message_icons? -
- inviter defs_user_id? -
- is_delayed_message boolean? -
- is_intro boolean? -
- is_starred boolean? -
- last_read defs_ts? -
- latest_reply defs_ts? -
- name string? -
- old_name string? -
- parent_user_id defs_user_id? -
- permalink string? -
- pinned_to defs_channel[]? -
- purpose string? -
- reactions objs_reaction[]? -
- reply_count int? -
- reply_users defs_user_id[]? -
- reply_users_count int? -
- source_team defs_workspace_id? -
- subscribed boolean? -
- subtype string? -
- team defs_workspace_id? -
- text string -
- thread_ts defs_ts? -
- topic string? -
- ts defs_ts -
- 'type string -
- unread_count int? -
- upload boolean? -
- user defs_user_id? -
- user_profile objs_user_profile_short? -
- user_team defs_workspace_id? -
- username string? -
slack: objs_message_attachments
Fields
- fallback string? -
- id int -
- image_bytes int? -
- image_height int? -
- image_url string? -
- image_width int? -
slack: objs_message_icons
Fields
- emoji string? -
- image_64 string? -
slack: objs_reaction
Fields
- count int -
- name string -
- users defs_user_id[] -
slack: objs_user_profile_short
Fields
- avatar_hash string -
- display_name string -
- display_name_normalized string? -
- first_name string -
- image_72 string -
- is_restricted boolean -
- is_ultra_restricted boolean -
- name string -
- real_name string -
- real_name_normalized string? -
- team defs_workspace_id -
slack: pins_add_body
Fields
- channel string - Channel to pin the item in.
- timestamp string? - Timestamp of the message to pin.
slack: Pins_listQueries
Represents the Queries record for the operation: pins_list
Fields
- channel string - Channel to get pinned items for.
slack: pins_remove_body
Fields
- channel string - Channel where the item is pinned to.
- timestamp string? - Timestamp of the message to un-pin.
slack: ProxyConfig
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
slack: reactions_add_body
Fields
- channel string - Channel where the message to add reaction to was posted.
- name string - Reaction (emoji) name.
- timestamp string - Timestamp of the message to add reaction to.
slack: Reactions_getQueries
Represents the Queries record for the operation: reactions_get
Fields
- file string? - File to get reactions for.
- channel string? - Channel where the message to get reactions for was posted.
- file_comment string? - File comment to get reactions for.
- full boolean? - If true always return the complete reaction list.
- timestamp string? - Timestamp of the message to get reactions for.
slack: Reactions_listQueries
Represents the Queries record for the operation: reactions_list
Fields
- cursor string? - Parameter for pagination. Set
cursorequal to thenext_cursorattribute returned by the previous request'sresponse_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.
- count int? -
- 'limit int? - 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.
- page int? -
- user string? - Show reactions made by this user. Defaults to the authed user.
- full boolean? - If true always return the complete reaction list.
slack: reactions_remove_body
Fields
- channel string? - Channel where the message to remove reaction from was posted.
- file string? - File to remove reaction from.
- file_comment string? - File comment to remove reaction from.
- name string - Reaction (emoji) name.
- timestamp string? - Timestamp of the message to remove reaction from.
slack: reminders_add_body
Fields
- text string - The content of the reminder
- time string - 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")
- user string? - The user who will receive the reminder. If no user is specified, the reminder will go to user who created it.
slack: reminders_complete_body
Fields
- reminder string? - The ID of the reminder to be marked as complete
slack: reminders_delete_body
Fields
- reminder string? - The ID of the reminder
slack: Reminders_infoQueries
Represents the Queries record for the operation: reminders_info
Fields
- reminder string? - The ID of the reminder
slack: Rtm_connectQueries
Represents the Queries record for the operation: rtm_connect
Fields
- batch_presence_aware boolean? - Batch presence deliveries via subscription. Enabling changes the shape of
presence_changeevents. See batch presence.
- presence_sub boolean? - Only deliver presence events when requested by subscription. See presence subscriptions.
slack: Search_messagesQueries
Represents the Queries record for the operation: search_messages
Fields
- highlight boolean? - Pass a value of
trueto enable query highlight markers (see below).
- query string - Search query.
- count int? - Pass the number of results you want per "page". Maximum of
100.
- page int? -
- sort string? - Return matches sorted by either
scoreortimestamp.
- sort_dir string? - Change sort direction to ascending (
asc) or descending (desc).
slack: stars_add_body
Fields
- channel string? - Channel to add star to, or channel where the message to add star to was posted (used with
timestamp).
- file string? - File to add star to.
- file_comment string? - File comment to add star to.
- timestamp string? - Timestamp of the message to add star to.
slack: Stars_listQueries
Represents the Queries record for the operation: stars_list
Fields
- cursor string? - Parameter for pagination. Set
cursorequal to thenext_cursorattribute returned by the previous request'sresponse_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.
- count string? -
- 'limit int? - 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.
- page string? -
slack: stars_remove_body
Fields
- channel string? - Channel to remove star from, or channel where the message to remove star from was posted (used with
timestamp).
- file string? - File to remove star from.
- file_comment string? - File comment to remove star from.
- timestamp string? - Timestamp of the message to remove star from.
slack: Team_accessLogsQueries
Represents the Queries record for the operation: team_accessLogs
Fields
- before string? - End of time range of logs to include in results (inclusive).
- count string? -
- page string? -
slack: Team_billableInfoQueries
Represents the Queries record for the operation: team_billableInfo
Fields
- user string? - A user to retrieve the billable information for. Defaults to all users.
slack: Team_infoQueries
Represents the Queries record for the operation: team_info
Fields
- team string? - 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 channels
slack: Team_integrationLogsQueries
Represents the Queries record for the operation: team_integrationLogs
Fields
- service_id string? - Filter logs to this service. Defaults to all logs.
- count string? -
- change_type string? - Filter logs with this change type. Defaults to all logs.
- page string? -
- app_id string? - Filter logs to this Slack app. Defaults to all logs.
- user string? - Filter logs generated by this user’s actions. Defaults to all logs.
slack: Team_profile_getQueries
Represents the Queries record for the operation: team_profile_get
Fields
- visibility string? - Filter by visibility.
slack: usergroups_create_body
Fields
- channels string? - A comma separated string of encoded channel IDs for which the User Group uses as a default.
- description string? - A short description of the User Group.
- 'handle string? - A mention handle. Must be unique among channels, users and User Groups.
- include_count boolean? - Include the number of users in each User Group.
- name string - A name for the User Group. Must be unique among User Groups.
slack: usergroups_disable_body
Fields
- include_count boolean? - Include the number of users in the User Group.
- usergroup string - The encoded ID of the User Group to disable.
slack: usergroups_enable_body
Fields
- include_count boolean? - Include the number of users in the User Group.
- usergroup string - The encoded ID of the User Group to enable.
slack: Usergroups_listQueries
Represents the Queries record for the operation: usergroups_list
Fields
- include_disabled boolean? - Include disabled User Groups.
- include_users boolean? - Include the list of users for each User Group.
- include_count boolean? - Include the number of users in each User Group.
slack: usergroups_update_body
Fields
- channels string? - A comma separated string of encoded channel IDs for which the User Group uses as a default.
- description string? - A short description of the User Group.
- 'handle string? - A mention handle. Must be unique among channels, users and User Groups.
- include_count boolean? - Include the number of users in the User Group.
- name string? - A name for the User Group. Must be unique among User Groups.
- usergroup string - The encoded ID of the User Group to update.
slack: Usergroups_users_listQueries
Represents the Queries record for the operation: usergroups_users_list
Fields
- include_disabled boolean? - Allow results that involve disabled User Groups.
- usergroup string - The encoded ID of the User Group to update.
slack: usergroups_users_update_body
Fields
- include_count boolean? - Include the number of users in the User Group.
- usergroup string - The encoded ID of the User Group to update.
- users string - A comma separated string of encoded user IDs that represent the entire list of users for the User Group.
slack: Users_conversationsQueries
Represents the Queries record for the operation: users_conversations
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- types string? - Mix and match channel types by providing a comma-separated list of any combination of
public_channel,private_channel,mpim,im
- 'limit int? - 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.
- user string? - Browse conversations by a specific user ID's membership. Non-public channels are restricted to those where the calling user shares membership.
- exclude_archived boolean? - Set to
trueto exclude archived channels from the list
slack: users_deletePhoto_body
Fields
- token string - Authentication token. Requires scope:
users.profile:write
slack: Users_getPresenceQueries
Represents the Queries record for the operation: users_getPresence
Fields
- user string? - User to get presence info on. Defaults to the authed user.
slack: Users_infoQueries
Represents the Queries record for the operation: users_info
Fields
- include_locale boolean? - Set this to
trueto receive the locale for this user. Defaults tofalse
- user string? - User to get info on
slack: Users_listQueries
Represents the Queries record for the operation: users_list
Fields
- cursor string? - Paginate through collections of data by setting the
cursorparameter to anext_cursorattribute returned by a previous request'sresponse_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
- 'limit int? - 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. Providing no
limitvalue will result in Slack attempting to deliver you the entire result set. If the collection is too large you may experiencelimit_requiredor HTTP 500 errors.
- include_locale boolean? - Set this to
trueto receive the locale for users. Defaults tofalse
slack: Users_lookupByEmailQueries
Represents the Queries record for the operation: users_lookupByEmail
Fields
- email string - An email address belonging to a user in the workspace
slack: Users_profile_getQueries
Represents the Queries record for the operation: users_profile_get
Fields
- include_labels boolean? - Include labels for each ID in custom profile fields
- user string? - User to retrieve profile info for
slack: users_profile_set_body
Fields
- name string? - Name of a single key to set. Usable only if
profileis not passed.
- profile 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.
- user string? - ID of user to change. This argument may only be specified by team admins on paid teams.
- value string? - Value to set a single key to. Usable only if
profileis not passed.
slack: users_setPhoto_body
Fields
- crop_w string? - Width/height of crop box (always square)
- crop_x string? - X coordinate of top-left corner of crop box
- crop_y string? - Y coordinate of top-left corner of crop box
- image string? - File contents via
multipart/form-data.
- token string - Authentication token. Requires scope:
users.profile:write
slack: users_setPresence_body
Fields
- presence string - Either
autooraway
slack: Views_openQueries
Represents the Queries record for the operation: views_open
Fields
- view string - A view payload. This must be a JSON-encoded string.
- trigger_id string - Exchange a trigger to post to the user.
slack: Views_publishQueries
Represents the Queries record for the operation: views_publish
Fields
- view string - A view payload. This must be a JSON-encoded string.
- user_id string -
idof the user you want publish a view to.
- hash string? - A string that represents view state to protect against possible race conditions.
slack: Views_pushQueries
Represents the Queries record for the operation: views_push
Fields
- view string - A view payload. This must be a JSON-encoded string.
- trigger_id string - Exchange a trigger to post to the user.
slack: Views_updateQueries
Represents the Queries record for the operation: views_update
Fields
- view string? - A view object. This must be a JSON-encoded string.
- view_id string? - A unique identifier of the view to be updated. Either
view_idorexternal_idis required.
- external_id string? - 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_idorexternal_idis required.
- hash string? - A string that represents view state to protect against possible race conditions.
slack: Workflows_stepCompletedQueries
Represents the Queries record for the operation: workflows_stepCompleted
Fields
- workflow_step_execute_id string - Context identifier that maps to the correct workflow step execution.
slack: Workflows_stepFailedQueries
Represents the Queries record for the operation: workflows_stepFailed
Fields
- workflow_step_execute_id string - Context identifier that maps to the correct workflow step execution.
- 'error string - A JSON-based object with a
messageproperty that should contain a human readable error message.
slack: Workflows_updateStepQueries
Represents the Queries record for the operation: workflows_updateStep
Fields
- outputs string? - An JSON array of output objects used during step execution. This is the data your app agrees to provide when your workflow step was executed.
- inputs string? - A JSON key-value map of inputs required from a user during configuration. This is the data your app expects to receive when the workflow step starts. Please note: the embedded variable format is set and replaced by the workflow system. You cannot create custom variables that will be replaced at runtime. Read more about variables in workflow steps here.
- step_name string? - An optional field that can be used to override the step name that is shown in the Workflow Builder.
- step_image_url string? - An optional field that can be used to override app image that is shown in the Workflow Builder.
- workflow_step_edit_id string - A context identifier provided with
view_submissionpayloads used to call back toworkflows.updateStep.
Array types
slack: blocks
blocks
This is a very loose definition, in the future, we'll populate this with deeper schema in this definition namespace.
Import
import ballerinax/slack;Metadata
Released date: over 1 year ago
Version: 4.0.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.9.0
GraalVM compatible: Yes
Pull count
Total: 478
Current verison: 0
Weekly downloads
Keywords
Communication/Team Chat
Cost/Freemium
Contributors