Add api for groups