def METHOD_NAME(headscale_host: str) -> str:
    data = {"timeout": 5}
    result = ""
    command_url = f"{headscale_host}/commands/generate_key"
    try:
        resp = requests.post(command_url, json=data)
        report = get_result(json=resp.json())
        result_dict = dict(extract_nested_json(report))
        result = result_dict["key"]
    except Exception as e:
        print("failed to make request", e)
    return result