Where alerts go: each channel, and whether it is on.

The answer

Status 200

A list of ChannelView Somewhere alerts go. Its secrets are never sent back: `target` says where it points with them left out.

created_at
stringneeded
declared
booleanneededFrom the instance's configuration: not edited here.
disabled
booleanneeded
id
stringneeded
kind
stringneeded`alertmanager`, `email`, `webhook`, `ntfy`, `discord`, `slack`, `telegram`.
kinds
list of stringneededThe alerts this channel is told about: its row of the matrix.
name
stringneeded
target
stringneeded

Asking

With your token from Settings
curl https://tidekeeper.eu/api/v1/channels \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/channels", {
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.json());