Enable API password without web password

I use NGINX with oauth2_proxy to restrict access to my various applications. I would like to do the same, but I cannot figure out a way to separate the API password from the UI password. Most services provide an API key and a password and allow you to disable the password. Is this something I could do in Home Assistant as well?