Added scheduled API handler