implement the access code api functionality