improved type definition of response for DataAPI