Slack alerts use incoming webhooks — the simplest Slack integration. No app installation required for the user side; just a webhook URL.Documentation Index
Fetch the complete documentation index at: https://docs.dbdock.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Setup
Create a Slack app
Go to api.slack.com/apps and click Create New App → From scratch. Name it “DBdock” (or whatever you like) and pick your workspace.
Add the webhook to a channel
Click Add New Webhook to Workspace. Pick the channel where alerts should post (e.g.
#backups or #ops-alerts). Slack generates a webhook URL.Configuration
dbdock.config.json
.env
.env approach is preferred — keeps the URL out of version control.
Message format
Slack messages look like:Success
✓ Backup complete
Database:
myapp
Size: 45.2 MB (compressed)
Duration: 8.4s
Storage: s3://my-backups/dbdock_backups/backup-...sqlFailure
✗ Backup failed
Database:
myapp
Error: Connection timeout
Timestamp: 2026-04-16 08:00:02
Tip: Check database is reachable from the runnerTesting
Routing
Alerting strategy
#backups— all events (success + failure)#ops-alerts— failures only (separate webhook, separate app instance)
Channel permissions
The webhook can only post to the channel it was created for. To change channels, create a new webhook and updateDBDOCK_SLACK_WEBHOOK.
Common issues
'invalid_payload' error
'invalid_payload' error
Webhook URL is correct but Slack rejected the message. Usually a transient issue — retry.
'channel_not_found' or 'no_active_hooks'
'channel_not_found' or 'no_active_hooks'
The channel was deleted, or the webhook was revoked. Recreate the webhook.
Message arrives but looks wrong
Message arrives but looks wrong
If you see raw JSON or unformatted text, your Slack workspace may have legacy incoming webhooks (pre-2019). Recreate the app from scratch.
Security
- The webhook URL is a secret — anyone with it can post to the channel
- Store it in
.env, never commit it - Rotate webhooks periodically (Slack dashboard → Incoming Webhooks → regenerate)
- If accidentally committed, revoke it immediately
See also
Email alerts
SMTP-based alerts.
Custom webhooks
Discord, Teams, and custom endpoints.

