Documentation / LemmeSee Hub

Invites

An invite is a one-time link that lets someone create their own user on your hub. You choose what they'll be able to do; they choose their username and receive their own access key. Nobody has to pass a key around.

Creating an invite

On the Users page, open the Invites tab, click + Add invite, pick a preset, and click Generate Link. The presets are the same as for adding a user; see Users and access keys.

The hub shows the link once. Copy it and send it to the person you're inviting. It looks like this:

https://hub.example.com/invite/AbC123...

The link is built from the address you're using the web UI from. If you're on the hub machine at localhost, replace that part with an address the other person can reach, such as the hub's public name. See Remote access.

Each link works once. Choose how long it stays valid in the Valid for list, from 1 to 30 days; the default is 7.

Accepting an invite

The person you invited opens the link in a browser, chooses a username (letters, numbers, underscores, and hyphens only) and clicks Create Account. The page then shows their access key once, with a reminder to copy it now. They enter the username and key in LemmeKnow when adding the server; see Connecting phones.

The new user gets exactly the permissions the invite carried. You can change them afterwards like any other user's.

If the link has expired, has already been used, or has been revoked, the page says so and asks them to get a new one from you. If the username they chose is already taken, the page asks for a different one and the link keeps working.

Managing invites

The Invites tab lists every invite that hasn't been used and hasn't expired, with its role label, how many permissions it carries, and its expiry date. Click ✕ on one to revoke it; the link stops working immediately. Used and expired invites drop off the list on their own.

Invites from a script

Admins can create invites through the API:

curl -X POST http://localhost:8765/api/invites \
  -H "X-Access-Key: YOUR_ACCESS_KEY" -H "X-Username: alice" \
  -H "Content-Type: application/json" \
  -d '{"preset": "read_only", "features": ["streams.private.porch"]}'

preset is listener, read_only, developer, or admin; features adds extra permissions on top of it, and expires_days (1 to 30, default 7) sets how long the link works. The response includes token, shown only this once: the link is /invite/<token> on your hub's address. See REST API for listing and revoking invites.