Don't ever use passwords for API authentication. It's an API, not a browser. The users of an API are other programs, not people. Issue single-purpose random credentials.
I didn't think this was something I had to point out about API authentication, but apparently it is.
I didn't think this was something I had to point out about API authentication, but apparently it is.