An API of events.