Add reason parameter to RAPI client functions