Skip to main content

Overview

Retrieve detailed information about a specific alert channel by its ID. This endpoint returns the complete configuration for the alert channel, including type-specific settings.

Response Example

{
  "id": 123,
  "type": "WEBHOOK",
  "name": "PagerDuty Integration",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-20T14:45:00.000Z",
  "config": {
    "url": "https://events.pagerduty.com/integration/abc123/enqueue",
    "method": "POST",
    "headers": [
      {
        "key": "Authorization",
        "value": "Token token=***masked***"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "queryParameters": [
      {
        "key": "routing_key",
        "value": "***masked***"
      }
    ]
  }
}

Response Examples by Type

{
  "id": 124,
  "type": "EMAIL",
  "name": "Team Email Alerts",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-15T10:30:00.000Z",
  "config": {
    "address": "team@company.com"
  }
}
{
  "id": 125,
  "type": "SLACK",
  "name": "Engineering Slack",
  "createdAt": "2024-01-16T09:15:00.000Z",
  "updatedAt": "2024-01-18T16:20:00.000Z",
  "config": {
    "url": "https://hooks.slack.com/services/***masked***",
    "channel": "#monitoring"
  }
}
{
  "id": 126,
  "type": "SMS",
  "name": "On-call SMS",
  "createdAt": "2024-01-17T14:22:00.000Z",
  "updatedAt": "2024-01-17T14:22:00.000Z",
  "config": {
    "number": "+1234567890",
    "name": "Emergency SMS"
  }
}
{
  "id": 127,
  "type": "PHONE",
  "name": "Critical Phone Alerts",
  "createdAt": "2024-01-18T11:45:00.000Z",
  "updatedAt": "2024-01-19T08:30:00.000Z",
  "config": {
    "number": "+1987654321",
    "name": "Emergency Hotline"
  }
}

Security Considerations

For security reasons, sensitive values in the configuration (like API keys, tokens, or webhook URLs) may be masked in the response with ***masked***. The actual values are preserved in our system but not exposed via the API.

Code Examples

curl -X GET "https://api.checklyhq.com/v1/alert-channels/123" \
  -H "Authorization: Bearer cu_1234567890abcdef" \
  -H "X-Checkly-Account: 550e8400-e29b-41d4-a716-446655440000"

Common Use Cases

Configuration Validation

Retrieve alert channel details to verify configuration before subscribing checks

Audit Trail

Check creation and modification timestamps for compliance and tracking

Integration Management

Get current webhook URLs or settings for updating external systems

Troubleshooting

Inspect alert channel configuration when notifications aren’t working as expected

Error Scenarios

The alert channel with the specified ID doesn’t exist or you don’t have access to it.
{
  "error": "Not Found",
  "message": "Alert channel not found",
  "statusCode": 404
}
You don’t have permission to access this alert channel.
{
  "error": "Forbidden",
  "message": "Insufficient permissions to access this resource",
  "statusCode": 403
}
This endpoint is useful for retrieving the current configuration of an alert channel, especially when you need to verify settings or troubleshoot notification issues. Remember that sensitive configuration values may be masked for security.