REST API overview

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

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

typequeryChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
qquerystring
cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Responses

  • 200
  • 422 Validation error
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/notification-channels

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

Request body

NameType
typerequiredChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
namerequiredstring
is_defaultboolean
activeboolean
apply_to_existingboolean
templatesobject | null
configobject
secretsobject

Responses

  • 201
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

POST /workspaces/{workspace}/notification-channels/test

Sends a test notification through a channel described by the request body, which is not saved

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

Request body

NameType
typerequiredChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
namerequiredstring
is_defaultboolean
activeboolean
apply_to_existingboolean
templatesobject | null
configobject
secretsobject

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

GET /workspaces/{workspace}/notification-channels/{channel}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

channelrequiredpathinteger

The channel ID

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/notification-channels/{channel}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

channelrequiredpathinteger

The channel ID

Request body

NameType
typeChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
namestring
is_defaultboolean
activeboolean
apply_to_existingboolean
templatesobject | null
configobject
secretsobject

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

DELETE /workspaces/{workspace}/notification-channels/{channel}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

channelrequiredpathinteger

The channel ID

Responses

  • 204 No content
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/notification-channels/{channel}/test

Sends a test notification through a saved channel

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

channelrequiredpathinteger

The channel ID

Responses

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated