/auth/registerRegister an account
Creates a user account from an email address, password, name, and phone number, and reports plainly when the address is already registered.
Registration creates the account and nothing more. A new account belongs to no
organisation and no workspace until it is invited to one, or until an
organisation request made from it is approved. Once the call succeeds, the
account can sign in through POST /auth/login.
An email address that is already registered is reported plainly rather than hidden behind a generic failure, so you can tell the person to sign in instead. Any other failure returns a generic error, so do not infer a cause from it.
emailstringrequiredpasswordstringrequiredfirst_namestringrequiredsurnamestringrequiredphonestringrequired#What happens next
The account exists but has nowhere to work yet. Either an administrator invites
it to a workspace, which the holder accepts through
GET /api/v1/accept-invite, or the holder signs in and
submits POST /api/v1/request-organisation for
staff to review. Taking part in vault approvals also needs a signing key, which
the holder registers themselves through
POST /api/v1/register-key.