Add ping method to check the API key