Added API key processing in server API.