Was going to ask the same question. Assuming https of course, what is the matter with basic auth?
It's fragile to request smuggling attacks too, because the password is not entangled with the request, just next to it.
We have lots of mechanisms that do better than both of those: client certs beat the first, and HMAC of the request and key headers with a secret beat both.
If I'm not mistaken Twilio does this too for their API