Flatten response body API