Documentation · API reference
GET/api/v1/tokens/about

Get token about

The answer

Status 200

TokenAbout What the API tokens screen needs beside the tokens themselves.

now
integerneeded
per_hour
integerneededRequests an hour one token may make.
scopes
list of ScopeViewneeded
sites
list of SiteRefneededThe sites a token of this member's could be held to.
url
stringneededWhere this tidekeeper is reached, for the example.

Asking

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