Get an alert channel
Returns one channel, without its URL or secret.
Requires the viewer role on the website and the alerting plan feature.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
channelId*stringThe alert channel's id.
A destination for alerts.
application/json- response
id*stringThe channel's id.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
name*stringDisplay name.
type*stringThe channel type: slack, google-chat, teams, telegram, webhook or email.
configPreview*stringA masked view of the destination: the URL's origin and last few characters, the Telegram chat id, or the recipients' addresses. Full URLs and secrets are never returned.
hasSecret*booleanWhether a secret is set: a signing secret for a webhook, a bot token for Telegram.
emailRecipients*array<>|The members an email channel notifies. null for other types.
enabled*booleanA disabled channel receives nothing.
disabledReason*|Why the channel was switched off. delivery_failures means it was switched off automatically after repeated failures.
consecutiveFailures*|Failed deliveries in a row. The channel is switched off at five, and the count resets on a success or when you enable it again.
createdAt*stringWhen the channel was created.
date-timeupdatedAt*stringWhen the channel was last changed.
date-timecurl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/alerts/channels/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90'{ "id": "string", "workspaceId": "string", "websiteId": "string", "name": "Security channel", "type": "slack", "configPreview": "https://hooks.slack.com/…AbCd", "hasSecret": true, "emailRecipients": [ { "memberId": "string", "userId": "string", "hasAccess": true, "email": "string", "firstName": "string", "lastName": "string", "picture": "string" } ], "enabled": true, "disabledReason": "delivery_failures", "consecutiveFailures": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}