POST /staff/register. This keeps account creation under strict administrative control — only the Master Admin can generate keys, and each key is consumed the moment it is used. If a key is compromised before use, it can simply be discarded and a fresh one generated.
Both endpoints under
/admin/registration-keys are restricted to the Master Admin account. No other role or permission level grants access to these routes.Generate a Registration Key
Creates a new single-use registration key and returns it in plaintext. Share this key out-of-band (for example, via a secure message) with the person who will be registering.List Registration Keys
Returns metadata for all registration keys ever generated in your Avalex account. This gives you an audit trail of key creation without exposing the key values themselves.The actual key string is never returned by this endpoint — only the key’s metadata. If you need to send a key to a staff member, you must generate a new one via
POST /admin/registration-keys.Response Fields
Using a Registration Key
Once you have generated a key and delivered it to a new team member, they submit it as part of thePOST /staff/register request body alongside their chosen username, email, password, and desired roles. The key is validated and marked as used atomically with account creation.
