Access and responses to API calls will be limited by the permissions the user has within Textline. For example, a user that cannot see departments other than the ones they are in will only see the ones they are in for the department, /api/groups.json, call. For full access, make sure to use an account that is given all permissions.