API calls currently not working using POST method