News API

List the notification targets a feature can address

Derived from the notification channel features of the project, nothing here is stored. Use featureId and an optional recipient key to fill notificationTargets on a feature.

get/rest/api/v1/projects/{projectId}/notificationChannels

Path parameters

projectIdstring uuid required

Query parameters

accountIdstring uuid

Also list the channels attached to this account

Response

OK

accountIdstring uuid

Set when level is ACCOUNT

channelType'TELEGRAM' | 'WEBHOOK'

Which channel this is

displayNamestring

Label for the picker

featureIdstring uuid

Id of the channel feature instance, the value for NotificationTargetDTO.featureId

levelstring

Where the channel is attached: PROJECT or ACCOUNT

Example response

[
  {
    "displayName": "Telegram",
    "level": "PROJECT",
    "recipients": [
      {
        "displayName": "@john",
        "key": "@john"
      }
    ]
  }
]

Changes

Changed in 1 of the 3 revisions of this API.1