removes header from the api response so that SendApiCmd return value can be used by applications