Feature before api hook