api created for activities