def METHOD_NAME() -> str:
    account_name = ""
    email = ""
    while True:
        if not account_name:
            email = typer.prompt("Enter your Google/Gmail/Azure/Outlook address. This will be used to login")
            email = email.strip()
            account_name = typer.prompt("Choose your account name (e.g your organization name)")
        res = requests.post(
            f"{backend_profile.robusta_cloud_api_host}/accounts/create",
            json={
                "account_name": account_name,
                "email": email,
            },
        )
        if res.status_code == 201:
            robusta_api_key = res.json().get("token")
            typer.secho(
                "Successfully registered.\n",
                fg="green",
            )
            return robusta_api_key
        if ACCOUNT_EXISTS_ERROR in res.json().get("msg"):
            alternative_account_name = get_alternative_name(account_name)
            typer.secho(f"The account name \"{account_name}\" is already in use.", fg="red")
            use_alternative_name = typer.confirm(
                f'Would you prefer "{alternative_account_name}" instead?', default=True
            )
            if use_alternative_name:
                account_name = alternative_account_name
            else:
                try_again = typer.confirm("Would you like to try again?", default=True)
                if not try_again:
                    return ""
                account_name = ""
        else:
            typer.secho(
                f"Sorry, something didn't work out. The response was {res.content!r}\n"
                f"If you need help, email support@robusta.dev",
                fg="red",
            )
            try_again = typer.confirm("Would you like to try again?", default=True)
            if not try_again:
                return ""
            account_name = ""