opkwashington.blogg.se

Slack web api
Slack web api







slack web api

This is the most basic text field for a post message. Similarly, if you're using user names to post a direct message (DM) to a user, prefix them with for example, Otherwise, use user IDs & user datapills as-is, for example, UA12345 or User ID respectively. Otherwise, use channel IDs & channel datapills as-is, for example, CANUXC4MU or Channel respectively. If you're using channel names to post messages to a channel, prefix them with '#', for example, #support-ticket-101. You can post messages to channels (public & private), or to a specific user.

slack web api

Your post messages can just be a simple line of text, or it can include a combination of text, buttons, menus, icons & images - depending on your use case. By default, messages are posted as the authenticated user.įor more on custom OAuth profiles, go to our Custom OAuth profiles documentation. The post message action posts a message to your specified channel or user. After subscribing to events, we strongly recommend going to OAuth & Permissions → Scopes to confirm your app's permission scopes. This may give your app unintended permissions from the additional scopes. Subscribing to events will automatically add scopes that your app does not already have. Remember to click 'Save changes' after selecting your permission scopes! # Event subscriptions & Permission scopes Go to OAuth & Permissions → Scopes to select your app's permission scopes. To add/remove permission scopes for your app, go to your Slack app's page (it should look something like ' (opens new window)' - your app ID is unique to your app). Retrieves list of multi-party group conversations. Retrieves list of direct message conversations.Ĭreate/update direct message conversations.Ĭreate/update multi-party group conversations. The minimum permissions for optimal use are listed in the table below. For example, the Create conversation action uses the conversations.create (opens new window) method, which requires the connected Slack app to have the channels:write scope. To perform each action, the app has must have the associated permission scope. Slack actions are performed on behalf of the user by the connected Slack app. Check out our Slack trigger documentation to learn more about creating a Slack app.

slack web api slack web api

All Slack actions use the Slack Web API (opens new window) to perform recipe actions.īefore using Slack actions, you'll first need to create a Slack app.









Slack web api