event api work