Documentation · API reference
GET/api/v1/me/push

The account's devices for push

The account's devices for push, and what a browser needs to become one.

The answer

Status 200

PushView Web push (NC-05): the devices of an account's members that take an alert's title, and what a browser needs to become one.

channel
string or nullThe account's push channel: its column of "Where alerts go". None until the first device is added.
devices
list of PushDeviceViewneeded
key
stringneededThe instance's public key, as a browser takes it to subscribe.
worker
stringneededWhere the worker is that the browser runs for it.

Asking

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