added api endpoint for using an access code and using active resource to grab the code from the master site