Configuring Slack Notifications
Last updated
This section demonstrates how to install the Slack App in your Slack workspace and receive notifications to your Slack channels and direct messages.
Make sure you have sufficient permissions for your Slack workspace to install the Slack App.
Make sure you have an NVIDIA Run:ai API token. See How to authenticate to the API for more details.
Visit https://api.slack.com/apps and generate an App Configuration token
Copy the access token (should start with xoxe.xoxp)
Send a POST request using the Create Slack app API and add the access token:
{
"accessToken": "THE_GENERATED_ACCESS_TOKEN_FROM_PREVIOUS_STEP"
}The request creates your Slack App and returns the newly created Slack App’s URL. For example:
{
"slackAppUrl": "https://api.slack.com/apps/A089PHD5S0Q"
}Open the URL, scroll down to Display Information and click Add App Icon to set the image for the bot
Under Features, click OAuth & Permissions
Click the Install to Workspace button to install the Slack App to your Slack workspace and accept the requested permissions
Now you have the Bot User OAuth Token
To receive Slack notifications, use the Create configuration of notification channel API. Use the Bot User OAuth Token obtained above and add it to the apiToken field.
Last updated