I can't get the authentication token for the API

What did you try?

For this sort of use case usually an App Access/Client Credentials token applies