Declare groups in api hook