Supported Events
StellarStack supports the following webhook event types:Server Power Events
server.started- Server has startedserver.stopped- Server has stoppedserver.crashed- Server has crashedserver.restarted- Server has restartedserver.auto_shutdown- Server was automatically shut down due to inactivity
Server Lifecycle Events
server.created- New server createdserver.deleted- Server deletedserver.updated- Server settings updatedserver.suspended- Server suspendedserver.unsuspended- Server unsuspended
Backup Events
backup.created- Backup created successfullybackup.failed- Backup failedbackup.restored- Backup restoredbackup.deleted- Backup deleted
Transfer Events
transfer.started- Server transfer startedtransfer.completed- Server transfer completedtransfer.failed- Server transfer failed
File Events
file.created- File createdfile.deleted- File deletedfile.modified- File modified
Resource Events
resource.warning- Resource usage warning threshold exceededresource.critical- Resource usage critical threshold exceeded
Creating a Webhook
Discord Webhook
Create a Discord webhook to receive notifications in a Discord channel:Get Discord Webhook URL
In Discord, go to Server Settings → Integrations → Webhooks → New Webhook. Copy the webhook URL.
Configure Events
Select which events you want to receive notifications for. You can subscribe to multiple events.
Global vs Server-Specific Webhooks
Managing Webhooks
List All Webhooks
Update a Webhook
Delete a Webhook
Test a Webhook
Send a test notification to verify your webhook is working:Webhook Payload
All webhooks receive a JSON payload with the following structure:Discord Format
Webhooks sent to Discord are automatically formatted as rich embeds:Example: Server Crash Event
Delivery & Retries
Delivery Tracking
View webhook delivery history:Automatic Retries
StellarStack automatically retries failed webhook deliveries:- Attempt 1: Immediate
- Attempt 2: After 1 minute
- Attempt 3: After 5 minutes
- Attempt 4: After 30 minutes
- Attempt 5: After 2 hours (final)
Webhooks are considered successful if they return HTTP status codes 200-299. Failed deliveries are automatically retried up to 5 times with exponential backoff.
Manual Retry
Retry a failed delivery manually:Use Cases
Discord Notification for Server Crashes
Backup Notifications
Resource Monitoring
Best Practices
Use Specific Events
Only subscribe to events you need to reduce noise and improve signal-to-noise ratio.
Server-Specific Webhooks
Create separate webhooks for critical servers to ensure important notifications aren’t missed.
Monitor Delivery Status
Regularly check delivery history to ensure webhooks are being delivered successfully.
Secure Webhook URLs
Keep webhook URLs private. Anyone with the URL can send messages to your channel.
Troubleshooting
Common Issues
Webhook returns 404
Webhook returns 404
The webhook URL is invalid or has been deleted. Create a new webhook in Discord/Slack.
No notifications received
No notifications received
Check that:
- The webhook is enabled (
"enabled": true) - You’re subscribed to the correct events
- The
serverIdmatches (if using server-specific webhooks)
Delivery timeout
Delivery timeout
Webhooks have a 10-second timeout. If your endpoint is slow to respond, deliveries may fail and retry.