Documentation · API reference
GET
/api/v1/teamThe team
This page as Markdown, or in an AI chatMore ways to read this page
The account's members, and the invitations not yet taken.
# The team
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-team
`GET /api/v1/team`
The account's members, and the invitations not yet taken.
## The answer
200, `TeamView`
- `can_change` (boolean, needed): Whether the member asking may change the others.
- `can_invite` (boolean, needed): Whether this tidekeeper can invite: it needs its own sign-in, which a personal instance leaves to its single sign-on.
- `invitations` (list of InvitationView, needed)
- `log` (list of LogLineView, needed): What members did lately, newest first.
- `members` (list of MemberView, needed)
- `now` (integer, needed): The server's clock, unix seconds: what "last here" is counted from.
- `roles` (list of RoleView, needed)
- `second_step_required` (boolean): Everyone needs a second step at sign-in.
- `sites` (list of SiteRef, needed): Every site of the account, to choose from.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/team \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
TeamView
- can_change
- booleanneededWhether the member asking may change the others.
- can_invite
- booleanneededWhether this tidekeeper can invite: it needs its own sign-in, which a personal instance leaves to its single sign-on.
- invitations
- list of InvitationViewneeded
- log
- list of LogLineViewneededWhat members did lately, newest first.
- members
- list of MemberViewneeded
- now
- integerneededThe server's clock, unix seconds: what "last here" is counted from.
- roles
- list of RoleViewneeded
- second_step_required
- booleanEveryone needs a second step at sign-in.
- sites
- list of SiteRefneededEvery site of the account, to choose from.
Asking
curl https://tidekeeper.eu/api/v1/team \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/team", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());