You can use the resource owner password grant get a token directly with a API call containing a username/password.
If you are setting up a machine to machine connection without a user then you should use the client credentials grant.
Hope this helps!
Thanks,
Dan