It was actually picking v1beta1 (by luck) still because that was second in the list. I remember it being mentioned that we should stick with hardcoding because the next version could require more changes. This is actually a perfect example.
In v1 it's now required to have that X-Google header otherwise the command would fail with a 503.