Skip to main content

Accept invitation redirect

GET /api/organizations/members/invite/accept

Redirect invitation acceptance to frontend. This endpoint is accessed via the link in the invitation email. It always redirects to the home page with the invitation token, allowing the frontend to handle the acceptance flow via a modal. This approach works with SameSite='strict' cookies because: - Cross-site navigation (clicking email link) doesn't send cookies - But same-origin POST requests (from frontend) DO send cookies Args: token: The invitation token from the email link request: FastAPI request Returns: RedirectResponse: Redirect to home page with invitation_token query param

Parameters

NameInTypeRequiredDescription
tokenquerystringyes

Responses

StatusDescription
200Successful Response
422Validation Error

Operation ID: accept_invitation_redirect_api_organizations_members_invite_accept_get