BS-11147, add constructor on api call context