API · v1.4.0
Notification channels
7 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
GET /workspaces/{workspace}/notification-channels
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
type | query | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) | |
q | query | string | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/notification-channels
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type |
|---|---|
typerequired | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) |
namerequired | string |
is_default | boolean |
active | boolean |
apply_to_existing | boolean |
templates | object | null |
config | object |
secrets | object |
Responses
201404Not found403Authorization error401Unauthenticated422Validation error
POST /workspaces/{workspace}/notification-channels/test
Sends a test notification through a channel described by the request body, which is not saved
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type |
|---|---|
typerequired | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) |
namerequired | string |
is_default | boolean |
active | boolean |
apply_to_existing | boolean |
templates | object | null |
config | object |
secrets | object |
Responses
200404Not found403Authorization error401Unauthenticated422Validation error
GET /workspaces/{workspace}/notification-channels/{channel}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
channelrequired | path | integer | The channel ID |
Responses
200404Not found403Authorization error401Unauthenticated
PATCH /workspaces/{workspace}/notification-channels/{channel}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
channelrequired | path | integer | The channel ID |
Request body
| Name | Type |
|---|---|
type | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) |
name | string |
is_default | boolean |
active | boolean |
apply_to_existing | boolean |
templates | object | null |
config | object |
secrets | object |
Responses
200404Not found403Authorization error401Unauthenticated422Validation error
DELETE /workspaces/{workspace}/notification-channels/{channel}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
channelrequired | path | integer | The channel ID |
Responses
204No content404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/notification-channels/{channel}/test
Sends a test notification through a saved channel
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
channelrequired | path | integer | The channel ID |
Responses
200404Not found403Authorization error401Unauthenticated