removed body reading
Added API call validation