Accept an invitation
POST/api/v1/auth/accept-invite
Optionally authenticated. An invitation for an email that has no
account yet is accepted anonymously, with a password (at least 8
characters) for the new account. An invitation for an existing account
must be accepted by that account, signed in: anonymously the answer is
401 INVITE_LOGIN_REQUIRED, and from any other signed-in account it is
403 INVITE_EMAIL_MISMATCH. A credential that is presented but invalid
gets 401, never an anonymous fallback. Refused under impersonation.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Invitation accepted; user logged in
Validation error
INVITE_LOGIN_REQUIRED: the invitation is for an existing account, sign in as it to accept. Or the presented credential is invalid.
INVITE_EMAIL_MISMATCH: the signed-in account is not the invitee. IMPERSONATION_FORBIDDEN under impersonation.
Resource not found