Documentation · API reference
GET/api/v1/sessions

Where you are signed in: each session, and when it was last used

Where you are signed in: each session, and when it was last used.

The answer

Status 200

A list of SessionView

id
stringneededThe start of the session's hash: enough to name it, not to use it.
last_seen
integer or null
since
integerneeded
this
booleanneededThe session that is asking.
what
stringneeded"Firefox on Linux". The browser's own string is not kept.

Asking

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