Getting 400 error while hitting groups endpoint

API call didn’t work for me unfortunately got 405/400 error. Using okta sdk solved the issue. There is a built in listGroups method helped.