add API response to debug output