WIP groups: API addition

@hachreak you mean i should not do checks in `api.py`?