add simple api function to trigger links generation