Documentation · API reference
GET
/api/v1/admin/invitesEvery invite code
This page as Markdown, or in an AI chatMore ways to read this page
Every invite code, newest first: who each is for, who made it, and the account it made. Never the code. Operators only.
# Every invite code
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-admin-invites
`GET /api/v1/admin/invites`
Every invite code, newest first: who each is for, who made it, and the account it made. Never the code. Operators only.
## The answer
200, `AdminInvites`
- `asked` (boolean, needed): Whether this deployment asks for a code to make an account (`signup.invites`). Codes can be made either way.
- `invites` (list of AdminInvite, needed)
## Asking
```sh
curl https://tidekeeper.eu/api/v1/admin/invites \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
AdminInvites
- asked
- booleanneededWhether this deployment asks for a code to make an account (`signup.invites`). Codes can be made either way.
- invites
- list of AdminInviteneeded
Asking
curl https://tidekeeper.eu/api/v1/admin/invites \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/admin/invites", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());