Overview
Create a new alert channel to define how and where you receive notifications when your checks fail or recover. Each alert channel type requires specific configuration parameters.402 Payment Required
response if you exceed your plan’s alert channel limit.Request Examples
Response Example
Configuration by Type
EMAIL Configuration
EMAIL Configuration
address
(string): Valid email address
SLACK Configuration
SLACK Configuration
url
(string): Slack webhook URL
channel
(string): Target Slack channel (e.g., “#alerts”)
- Go to your Slack workspace settings
- Navigate to “Incoming Webhooks”
- Create a new webhook for your desired channel
- Copy the generated webhook URL
WEBHOOK Configuration
WEBHOOK Configuration
url
(string): Target webhook endpointmethod
(string): HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD)
headers
(array): Custom HTTP headersqueryParameters
(array): URL query parameters
SMS Configuration
SMS Configuration
number
(string): Phone number in international format (E.164)name
(string): Display name for the SMS alert
- Must start with
+
followed by country code - Example:
+1234567890
for US numbers
PHONE Configuration
PHONE Configuration
number
(string): Phone number in international format (E.164)name
(string): Display name for the phone alert
Code Examples
Best Practices
Naming Conventions
Naming Conventions
- The team or purpose
- The urgency level
- The communication channel type
- “Engineering Team - Critical Alerts”
- “Marketing Dashboard - Email Notifications”
- “On-call Engineer - SMS Only”
Webhook Security
Webhook Security
- Always use HTTPS endpoints
- Include authentication headers
- Consider IP whitelisting on your webhook endpoint
- Validate webhook payloads in your receiving application
Phone Number Format
Phone Number Format
- Always use E.164 international format
- Include country code with
+
prefix - Test phone numbers before using in production
- Consider time zones for phone alerts
Slack Integration
Slack Integration
- Use dedicated channels for monitoring alerts
- Set up appropriate channel permissions
- Consider using Slack’s threading feature for related alerts
- Test webhook URLs before saving
Authorizations
The Checkly Public API uses API keys to authenticate requests. You can get the API Key here.
Your API key is like a password: keep it secure!
Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.
For example, set Authorization header while using cURL:
curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"
Headers
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Body
EMAIL
, SLACK
, WEBHOOK
, SMS
, PAGERDUTY
, OPSGENIE
, CALL
"SMS"
All checks subscribed to this channel.
[]
Determines if an alert should be sent for expiring SSL certificates.
At what moment in time to start alerting on SSL certificates.
1 <= x <= 30
Automatically subscribe newly created checks to this alert channel.
Response
Created
1
EMAIL
, SLACK
, WEBHOOK
, SMS
, PAGERDUTY
, OPSGENIE
, CALL
"SMS"
The configuration details for this alert channel. These can be very different based on the type of the channel.
All checks subscribed to this channel.
[]
Determines if an alert should be sent for expiring SSL certificates.
At what moment in time to start alerting on SSL certificates.
1 <= x <= 30
Automatically subscribe newly created checks to this alert channel.