integrate hook api