Documentation · API reference
GET
/api/v1/me/pushThe account's devices for push
This page as Markdown, or in an AI chatMore ways to read this page
The account's devices for push, and what a browser needs to become one.
# The account's devices for push
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-me-push
`GET /api/v1/me/push`
The account's devices for push, and what a browser needs to become one.
## The answer
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 null): The account's push channel: its column of "Where alerts go". None until the first device is added.
- `devices` (list of PushDeviceView, needed)
- `key` (string, needed): The instance's public key, as a browser takes it to subscribe.
- `worker` (string, needed): Where the worker is that the browser runs for it.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/me/push \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
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
curl https://tidekeeper.eu/api/v1/me/push \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/me/push", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());