Documentation · API reference
GET
/api/v1/tokensYour API tokens
This page as Markdown, or in an AI chatMore ways to read this page
The API tokens you made; all of the account's for whoever manages it.
# Your API tokens
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-tokens
`GET /api/v1/tokens`
The API tokens you made; all of the account's for whoever manages it.
## The answer
200, `A list of TokenView`
- `created_at` (string, needed)
- `expires` (integer or null): Unix seconds after which it no longer works.
- `id` (string, needed)
- `last_used_at` (string or null)
- `last_used_by` (string or null): What last used it, in a word: `CLI`, `curl`.
- `made_by` (string): The member who made it. It never does more than they may.
- `name` (string, needed)
- `revoked_at` (string or null)
- `scopes` (list of string, needed)
- `sites` (list of string): The sites it is held to, by name. Empty is every site.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/tokens \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
A list of TokenView
- created_at
- stringneeded
- expires
- integer or nullUnix seconds after which it no longer works.
- id
- stringneeded
- last_used_at
- string or null
- last_used_by
- string or nullWhat last used it, in a word: `CLI`, `curl`.
- made_by
- stringThe member who made it. It never does more than they may.
- name
- stringneeded
- revoked_at
- string or null
- scopes
- list of stringneeded
- sites
- list of stringThe sites it is held to, by name. Empty is every site.
Asking
curl https://tidekeeper.eu/api/v1/tokens \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/tokens", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());