Oh, thanks for figuring that out!
I wonder if it would make sense to use the older, 'X-Gotify-Key' header then, for broader compatibility. It seems like they have no intentions of phasing that one out. Then on the other hand, Gotify 2.2.0 was released more than a year ago, so maybe simply documenting the version requirement in our docs would be enough and encourage people to update