Could you please paste in the information about the request you are making? Clicking on the button in the user interface actually calls the exact same API call that you are trying to make manually (you can actually look in your browser network tab and see the request), so the fact that clicking the button in the user interface works correctly for you but your manual call does not probably means there is some issue with how you are forming or making the request.