Slack
Send alerts to a Slack channel using incoming webhooks.
Prerequisites
- A Slack workspace where you can add apps
- A Talarius account with a project created
Create an Incoming Webhook
Go to your Slack workspace's App Directory:
- Open api.slack.com/apps
- Click Create New App
- Choose From scratch
- Name it (e.g., "Talarius Alerts") and select your workspace
- Click Create App
Enable Incoming Webhooks
In your app settings:
- Click Incoming Webhooks in the sidebar
- Toggle Activate Incoming Webhooks to On
- Click Add New Webhook to Workspace
- Select the channel where you want alerts
- Click Allow
Copy the Webhook URL
You'll see your new webhook URL. It looks like:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXXKeep this URL secret
Anyone with this URL can post messages to your channel. Treat it like a password.
Configure in Talarius
In your Talarius dashboard:
- Go to your project settings
- Select Slack as destination type
- Paste your Webhook URL
- Click Test Connection
- Save the configuration
Send a Test Alert
Test your integration:
curl -X POST https://v1.talarius.io/alerts \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Test Alert", "body": "Slack integration is working!"}'How alerts appear
Alerts are sent as Slack messages with attachments:
Talarius Alerts
APP 2:34 PMServer Alert
CPU usage exceeded 90% on production-web-1
Priority: high
Troubleshooting
Webhook URL not working?
Make sure the URL starts with https://hooks.slack.com/services/. Older Slack URLs have a different format.
Getting "channel_not_found" error?
The webhook is tied to a specific channel. If the channel was deleted or renamed, you'll need to create a new webhook.
Need to change the channel?
Create a new webhook for the new channel in your Slack app settings. Each webhook is bound to one channel.
Optional: Customize your app
Make your alerts more recognizable in Slack:
- Go to your app settings at api.slack.com/apps
- Click Basic Information
- Scroll to Display Information
- Upload an icon and customize the name