def create(**kwargs):
    """
    Creates a new API Key.

    :param kwargs:
    :return:
    """
    api_key = ApiKey(**kwargs)
    # this logs only metadata about the api key
    log_service.audit_log("create_api_key", api_key.name, f"Creating the API key {api_key}")

    database.create(api_key)
    return api_key

    Creates a new API Key.

    :param kwargs:
    :return:
    
lemur/api_keys/service.py