Able to send AJAX, but not recognized by the API