Sign-in and tokens
Create an account
POST/api/v1/auth/register
Who can use this: Anyone, with no sign-inAs Markdown
Accounts are by invitation only: invite_token must be an unused invite, and creating the account uses it up. The account can sign in straight away, but this call doesn't sign it in: sign in next to get a token.
Parameters
| Name | Where | What it is |
|---|---|---|
| email required | body | The new account's address, which is also what it signs in with.e.g. newuser@example.com |
| password required | body | The new account's password.e.g. $PASSWORD |
| invite_token required | body | The token from an invite link.e.g. $INVITE_TOKEN |
| recovery_email | body | An address outside this mail system, where a password-reset link can be sent.e.g. personal@example.com |
Good to know
- An address that already has an account answers 409, and the invite is not used up.
- Leaving out invite_token answers 400. An invite that is unknown, used or expired answers 403, and so does an address outside the invite's own domain (mailmasker.org).
- After ten failed sign-ins or invite attempts from one network address within 15 minutes, it answers 429; wait 15 minutes.