Add custom API event.