List alert channels
Lists where this website can send notifications: Slack, Google Chat, Microsoft Teams, Telegram, a webhook of your own, or email. Webhook URLs, bot tokens and signing secrets are never returned, only a masked preview of the destination and whether a secret is set.
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.
cursor?stringThe nextCursor of the previous page. Omit it to start from the beginning. A cursor encodes a position and is not meant to be built by hand.
limit*|How many items to return, from 1 to 200.
1 <= value <= 20050q?stringMatch part of the channel name.
length <= 255type?AlertChannelTypeWhere notifications are sent.
"slack""google-chat""teams""telegram""webhook""email"enabled?booleanOnly enabled or only disabled channels.
A page of alert channels.
application/json- response
data*array<>The alert channels on this page.
pagination*Where this page sits in the full result set.
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/alerts/channels?limit=50'{ "data": [ { "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" } ], "pagination": { "nextCursor": "string", "hasMore": true, "total": 0 }}