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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | query | string | yes | — |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
Operation ID: accept_invitation_redirect_api_organizations_members_invite_accept_get