## GetSSOLoginURL `accounts.get_sso_login_url(AccountGetSSOLoginURLParams**kwargs) -> AccountGetSSOLoginURLResponse` **post** `/gitpod.v1.AccountService/GetSSOLoginURL` Gets the SSO login URL for a specific email domain. Use this method to: - Initiate SSO authentication - Get organization-specific login URLs - Handle SSO redirects ### Examples - Get login URL: Retrieves SSO URL for email domain. ```yaml email: "user@company.com" ``` - Get URL with return path: Gets SSO URL with specific return location. ```yaml email: "user@company.com" returnTo: "https://gitpod.io/workspaces" ``` ### Parameters - `email: str` email is the email the user wants to login with - `return_to: Optional[str]` return_to is the URL the user will be redirected to after login ### Returns - `class AccountGetSSOLoginURLResponse: …` - `login_url: str` login_url is the URL to redirect the user to for SSO login ### Example ```python import os from gitpod import Gitpod client = Gitpod( bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted ) response = client.accounts.get_sso_login_url( email="user@company.com", ) print(response.login_url) ``` #### Response ```json { "loginUrl": "loginUrl" } ```