use representation callback to convert API responses to body text