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

Add the browser this is asked from as a device

Add the browser this is asked from as a device: what it gave when it subscribed to its push service.

What to send

PushSubscribe What a browser gave when it subscribed.

auth
string
endpoint
string
name
string or nullA name for the device. Left out: what its browser says it is.
p256dh
string

The answer

Status 201

PushDeviceView

by
stringneededThe member whose device it is.
error
stringneededWhat its push service said the last time it refused. Empty: nothing.
id
stringneeded
last_sent
integer or null
made
integerneeded
mine
booleanneededIt is the asking member's own.
name
stringneededWhat its owner sees it as: `Firefox on Linux`.

Asking

With your token from Settings
curl -X POST https://tidekeeper.eu/api/v1/me/push \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{}'
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/me/push", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
}).then((r) => r.json());