removed the unnecessary parenthesis and changed the API logic from GET to POST.