Обязательно включите фактический токен в HEROKU_API_KEY
env var:
$ heroku authorizations
Heroku CLI login from emily d7cefd7d-6570-40cd-b510-84158323c238 global
# this is _not_ what you need
$ heroku authorizations:info d7cefd7d-6570-40cd-b510-84158323c238
...
Token: f1a255ee-c92c-49ee-8935-c430a7ad6a53 <-- this is what you need
...
Альтернатива:
$ heroku authorizations --json
...
"access_token": {
"expires_in": null,
"id": "a890965c-bebd-43c7-af17-41225e92d0df",
"token": "f1a255ee-c92c-49ee-8935-c430a7ad6a53" // <-- this is what you need
},
...