api: add macro that zeros out api reply buffer