HCSVLAB-506: fix authentication bug for API document requests