If you want to authenticate the machine users, you currently have to use jwt profile grant or PAT. If you use PAT you can simply set the token in the Authorization header. The user needs an authorization on the resource server(s).
Service accounts can authenticate using JWT Profile. As alternative you can directly generate a PAT for authorization. While JWT Profile is very secure it's not always supported by 3rd part...