API for indexes