Changed api agent to be non-iOS specific