Documentation · API reference
POST/api/v1/team/invitations

Post invitation

What to send

Invite

email
stringneeded
may_visitors
boolean
role
stringneeded`admin` or `viewer`. An owner is made by handing the account over.
sites
list of string or nullSite ids or names. `null` is every site.

The answer

Status 201

Invited

emailed
booleanneededWhether it was also sent by email.
invitation
InvitationViewneeded
link
stringneededThe link, shown once: tidekeeper keeps only a hash of it.

Asking

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