POST
/v2/insights/notification-channelsCreate a Notification Channel
To create a notification channel, send a POST request to
/v2/insights/notification-channels with a name and exactly one of
email, slack, or webhook.
Email recipients must be verified team member addresses. Webhook URLs must
use HTTPS. Secret fields (slack.webhook_url, webhook credentials) are
write-only. Subsequent reads never return secret values; they include
optional *_status objects when a secret is configured.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
namestringrequired
A human-readable name for the notification channel.
emailobjectoptional
Email notification channel configuration. Recipients must be verified team
member email addresses.
slackobjectoptional
Slack notification channel configuration for create and update requests.
`webhook_url` is write-only: send the full value to set or rotate. Omit
`webhook_url` on update to keep the existing secret.
webhookobjectoptional
Generic HTTPS webhook notification channel configuration for create and
update requests. The URL must use HTTPS and must not include userinfo.
Optionally configure either `basic_auth` or `bearer_token` (not both),
custom headers, and a signing secret.
`url` is not a secret and is returned in full on read. Credential fields
(`basic_auth.password`, `bearer_token.token`, `signature.secret`) are
write-only: send the full value to set or rotate. Omit a secret field on
update to keep the existing value. Responses return nested `*_status`
objects instead of secret values.
201A single notification channel.
notification_channelobjectrequired
A reusable Insights notification channel.
400There was an error parsing the request body.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
401Authentication failed due to invalid credentials.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
429The API rate limit has been exceeded.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
500There was a server error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
defaultThere was an unexpected error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
Error handling
A 400 is returned: There was an error parsing the request body. A 401 is returned: Authentication failed due to invalid credentials. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.