I am getting the following error when i try triggering a build using the following command:
curl http://jenkins_server:port/jenkins/job/job_name/build?token=token_name>
In my case i had the URL and token correct, but had forgotten one of the required permissions for the API user that triggers the URL/build.
The permissions have to minimally include the list here: