Accept an invitation
POST/api/invite/:token/accept
Accepts a pending invitation. Validates the token, verifies the caller's email matches the invited email, adds the user to the organization as the invited role, marks the invitation as accepted, and re-issues a new access token scoped to the new org
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 410
Invitation accepted, new access token set
Unauthorized
Caller email does not match invitation
Invitation not found or already accepted
Already a member of this org
Invitation expired