check if api_key is enabled