fixed api call, but returns 400 error