Alerts API
The Alerts API provides endpoints for managing alert notification channels and receivers.Get Alert Notifiers
Retrieve all available alert notification channel types.Schema version (“2” for v2 schema)
Notification channel type identifier
Display name of the notification channel type
Description of the notification channel
Supported Notification Types
Grafana supports various notification channel types:addresses: Comma-separated list of email addresses
Slack
Sends notifications to Slack channels or users. Required Options:url: Slack incoming webhook URL
channel: Slack channel or user (e.g.,#alertsor@username)username: Bot username to displayicon_emoji: Emoji to use as the bot icon
PagerDuty
Integrates with PagerDuty for incident management. Required Options:integrationKey: PagerDuty integration key
severity: Alert severity levelautoResolve: Automatically resolve incidents when alert resolves
Webhook
Sends HTTP POST requests to custom webhooks. Required Options:url: Webhook URL endpoint
httpMethod: HTTP method (POST, PUT)username: Basic auth usernamepassword: Basic auth passwordauthorization: Authorization header value
Microsoft Teams
Sends notifications to Microsoft Teams channels. Required Options:url: Microsoft Teams webhook URL
OpsGenie
Integrates with OpsGenie for alert management. Required Options:apiKey: OpsGenie API key
autoClose: Automatically close alertsoverridePriority: Override alert priority
VictorOps
Integrates with VictorOps (now Splunk On-Call). Required Options:url: VictorOps webhook URL
Pushover
Sends push notifications via Pushover. Required Options:apiToken: Pushover API tokenuserKey: User or group key
priority: Notification priority (-2 to 2)sound: Notification sound
Alert Notification Schema
The notification schema defines the structure for configuring alert receivers.Version 1 Schema (Legacy)
The v1 schema is used for backward compatibility with older alerting configurations.Version 2 Schema
To retrieve the v2 schema, add?version=2 to the request:
Unified Alerting
For Grafana v8.0+, the unified alerting system provides enhanced alert management features:- Alert Rules: Define alert conditions and evaluation rules
- Contact Points: Configure notification destinations
- Notification Policies: Route alerts to appropriate contact points
- Silences: Temporarily mute notifications
Examples
Email Notification Configuration
Slack Notification Configuration
Webhook Notification Configuration
Permissions
Access to alert notification endpoints requires appropriate permissions:- Viewing notification types is available to all authenticated users
- Creating and managing notification channels typically requires Editor or Admin role
- Organization-level permissions may be required for managing org-wide notifications