Sebelumnya, Endar bertugas sebagai Direktur Penyelidikan (Dirlidik) KPK. Tugas tersebut telah dia emban selama 3 tahun terhitung sejak April 2020.