api for groups ok