add endpoint for pending events