Invitations
Accept Invitation
Accept an invitation and create a user account.
Validates the invitation token, creates a user account with the provided password, and returns authentication tokens.
Flow:
- Validate token exists
- Validate token not expired
- Validate token not already accepted
- Validate password strength
- Create user account
- Mark invitation as accepted
- Generate JWT tokens
- Return auth response
POST
Accept Invitation
Path Parameters
Body
application/json
Request schema for accepting an invitation.
Password for the new user account
Minimum string length:
8Response
Successful Response
Response for successful authentication (login).
Previous
Cancel InvitationCancel an invitation.
Deletes an invitation from the database. Only invitations belonging to
the current user's account can be cancelled.
Args:
invitation_id: ID of the invitation to cancel.
current_user: Authenticated user context.
session: Database session.
Raises:
HTTPException: 404 if invitation not found or doesn't belong to account.
Next
Accept Invitation