Documentation · API reference
POST/api/v1/admin/invites

Make an invite code

Make an invite code: shown this once, with the link that carries it to sign-up. Operators only.

What to send

AdminInviteNew A new invite code (doc/invites.md): who it is for.

note
string

The answer

Status 201

AdminInviteMade An invite code just made: the code itself, shown this once, and the link that carries it to sign-up.

code
stringneeded
id
stringneeded
link
stringneeded
note
stringneeded

Asking

With your token from Settings
curl -X POST https://tidekeeper.eu/api/v1/admin/invites \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{}'
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/admin/invites", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
}).then((r) => r.json());