API scope `all-users` not working anymore

I have this snip of Python, which previously generated a user and had them like a post.

i = i + extra
            pw = nanoid.generate(size=150)
            name = f"User{nanoid.generate(size=5, alphabet='abcdefghijklmnopqrstuvwxyz')}.{i}"

            username = str(name)
            print(f"spam_{i}@notpyx.me")

            resp = httpx.post(
                url="https://discourse.pyxfluff.dev/users.json",
                json={
                    "name": f"User.{i}",
                    "email": f"discourse.{i}@notpyx.me",
                    "username": username,
                    "password": str(pw),
                    "active": True,
                    "approved": True,
                },
                headers={"Api-Key": API_KEY, "Api-Username": "system"},
            )
            resp.raise_for_status()

            rp(f"[green]Made {username}: {pw}[/]")

            if like_post_id:
                try:
                    print(
                        httpx.post(
                            url="https://discourse.pyxfluff.dev/post_actions.json",
                            json={"id": int(like_post_id), "post_action_type_id": 2},
                            headers={"Api-Key": API_KEY, "Api-Username": username},
                        ).json()
                    )

Afterwards it would generate and send a post. However, sometime in the last month it stopped working and only gives 400s.

This script worked perfectly fine a while back. Did something change I’m not aware of?