Updated API call.
Added a missing header and fixed several API calls.