Refactored ApiKey from api methods