events and profiles api