Add trigger api