Documentation · API reference
GET
/api/v1/sessionsWhere you are signed in: each session, and when it was last used
This page as Markdown, or in an AI chatMore ways to read this page
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
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sessions
`GET /api/v1/sessions`
Where you are signed in: each session, and when it was last used.
## The answer
200, `A list of SessionView`
- `id` (string, needed): The start of the session's hash: enough to name it, not to use it.
- `last_seen` (integer or null)
- `since` (integer, needed)
- `this` (boolean, needed): The session that is asking.
- `what` (string, needed): "Firefox on Linux". The browser's own string is not kept.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/sessions \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
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
curl https://tidekeeper.eu/api/v1/sessions \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/sessions", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());