Docs
Live demo
POST/api/v2/drift/notifications/config

Create a new notification configuration for drift alerts

Request body application/json · NotificationConfigRequest

Notification config creation request

Required2 of 6 fields
channelstringrequired
webhookemailslack
configmap of string → anyrequired

Channel-specific configuration. For Slack, put the destination channel name/ID in config.channel and optionally provide config.bot_token. The top-level channel field remains the delivery channel type. config.bot_token is stored in OpenBao and is never returned in responses.

Optional4 fields
event_typesarray of string
drift.founddrift.failedapply.failedapply.succeededsync.failedaccess.expiringaccess.requestedcert.duetarget.createdtarget.updatedtarget.delete_requestedtarget.deletedapplication.adoptedapplication.access.updatedapplication.dex_client.appliedidentity.createdidentity.updatedidentity.deletedgroup.membership.addedgroup.membership.removedpolicy.createdpolicy.updatedpolicy.deletedcredentials.revealedcredentials.read_limit_exceededapi_token.new_networkaccess.left_on_target
enabledboolean
instance_idstring
severity_filterarray of string

Responses

201

Created

NotificationConfigResponse · 10 fields
channelstring

Channel type. The console edits Slack channels, webhook and email channels are managed through the API.

webhookemailslack
configmap of string → any

The settings of the channel that are safe to show, by channel type: Slack channel, name and bot_token_configured: true when a bot token is stored in OpenBao. Email recipients and name. Webhook name and the scheme and host of its url, with url_truncated: true when the saved address also has a path, a query or credentials. Every caller gets the same answer. Other saved fields, secrets and headers are never returned. An update that sends back only these fields keeps the saved ones.

created_atstring
enabledboolean
idstring
instance_idstring
organization_idstring
event_typesarray of string
drift.founddrift.failedapply.failedapply.succeededsync.failedaccess.expiringaccess.requestedcert.duetarget.createdtarget.updatedtarget.delete_requestedtarget.deletedapplication.adoptedapplication.access.updatedapplication.dex_client.appliedidentity.createdidentity.updatedidentity.deletedgroup.membership.addedgroup.membership.removedpolicy.createdpolicy.updatedpolicy.deletedcredentials.revealedcredentials.read_limit_exceededapi_token.new_networkaccess.left_on_target
severity_filterarray of string
updated_atstring

Common errors: 400 401 403 404 409 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close