0

I have a Heroku addon. when osme Heroku user is installing it I receive a Heroku create account event with an authentication code. After that convert it to access_token with POST https://id.heroku.com/oauth/token and finally, with the obtained access_token I want to know the email address of the user who is actually installing my addon.

I can do GET https://api.heroku.com/apps/[APP_ID] and receive an Heroku team email address (owner.email), but it is not what I'm looking for.
I can also do GET https://api.heroku.com/account but here I receive an error with statusCode: 404, statusMessage: 'Not Found', errorCode: "Couldn't find that user."

I can have user email when it makes SSO login but I want to have in the very beginning, when it installs an addon.

mirik
  • 356
  • 4
  • 18

0 Answers0